From 45659961ce9e0248154dbf640a5e92e2cdcdba0e Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 30 Dec 2006 04:16:21 +0000 Subject: [PATCH] Casting to ints produces incorrect results when the number is larger than 2^32. --- stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp index 2165663182..0634e9fbf2 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp @@ -476,8 +476,8 @@ int64_t RageSoundDriver::ClampHardwareFrame( int64_t iHardwareFrame ) const static RageTimer last(RageZeroTimer); if( last.IsZero() || last.Ago() > 1.0f ) { - LOG->Trace( "RageSoundDriver: driver returned a lesser position (%i < %i)", - (int) iHardwareFrame, (int) m_iMaxHardwareFrame ); + LOG->Trace( "RageSoundDriver: driver returned a lesser position (%lld < %lld)", + iHardwareFrame, m_iMaxHardwareFrame ); last.Touch(); } return m_iMaxHardwareFrame;