Casting to ints produces incorrect results when the number is larger than 2^32.

This commit is contained in:
Steve Checkoway
2006-12-30 04:16:21 +00:00
parent c6b17932fa
commit 45659961ce
@@ -476,8 +476,8 @@ int64_t RageSoundDriver::ClampHardwareFrame( int64_t iHardwareFrame ) const
static RageTimer last(RageZeroTimer); static RageTimer last(RageZeroTimer);
if( last.IsZero() || last.Ago() > 1.0f ) if( last.IsZero() || last.Ago() > 1.0f )
{ {
LOG->Trace( "RageSoundDriver: driver returned a lesser position (%i < %i)", LOG->Trace( "RageSoundDriver: driver returned a lesser position (%lld < %lld)",
(int) iHardwareFrame, (int) m_iMaxHardwareFrame ); iHardwareFrame, m_iMaxHardwareFrame );
last.Touch(); last.Touch();
} }
return m_iMaxHardwareFrame; return m_iMaxHardwareFrame;