Fix warnings about shortening 64 bits to 32 bits.

This commit is contained in:
Steve Checkoway
2008-05-10 06:50:57 +00:00
parent f25a63eb8f
commit da1b2d5052
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -49,12 +49,12 @@ static uint64_t GetTime( bool bAccurate )
float RageTimer::GetTimeSinceStart( bool bAccurate )
{
uint64_t usecs = GetTime( bAccurate );
int64_t usecs = GetTime( bAccurate );
usecs -= g_iStartTime;
// HACK: VC6 can't cast u64 to a double, but it can cast a i64 to a double.
// We can afford to lose one bit of precision since these numbers will
// never overflow a 64 int.
return (int64_t)usecs / 1000000.f;
return float( double(usecs) / 1000000. );
}
void RageTimer::Touch()