diff --git a/src/i_system.h b/src/i_system.h index 61f5bf8a1..cbe4aaf3a 100644 --- a/src/i_system.h +++ b/src/i_system.h @@ -56,7 +56,7 @@ precise_t I_GetPreciseTime(void); /** \brief Converts a precise_t to microseconds and casts it to a 32 bit integer. */ -INT64 I_PreciseToMicros(precise_t d); +int I_PreciseToMicros(precise_t d); /** \brief The I_Sleep function diff --git a/src/screen.c b/src/screen.c index 79b6d7578..7d27e31af 100644 --- a/src/screen.c +++ b/src/screen.c @@ -535,7 +535,7 @@ void SCR_CalculateFPS(void) precise_t endTime = 0; static precise_t updateTime = 0; - INT64 updateElapsed = 0; + int updateElapsed = 0; int i; endTime = I_GetPreciseTime(); @@ -545,7 +545,7 @@ void SCR_CalculateFPS(void) if (updateElapsed >= FPS_SAMPLE_RATE) { static int sampleIndex = 0; - INT64 frameElapsed = I_PreciseToMicros(endTime - startTime); + int frameElapsed = I_PreciseToMicros(endTime - startTime); fps_samples[sampleIndex] = frameElapsed / 1000.0f; diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 3de164aa6..bd02f74d6 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -1672,7 +1672,7 @@ precise_t I_GetPreciseTime(void) return SDL_GetPerformanceCounter(); } -INT64 I_PreciseToMicros(precise_t d) +int I_PreciseToMicros(precise_t d) { // d is going to be converted into a double. So remove the highest bits // to avoid loss of precision in the lower bits, for the (probably rare) case @@ -1705,7 +1705,7 @@ boolean I_CheckFrameCap(void) { static precise_t start = 0; precise_t end; - INT64 elapsed; + int elapsed; UINT32 capFrames = R_GetFramerateCap(); int capMicros = 0;