Casting to ints produces incorrect results when the number is larger than 2^32.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user