mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-16 16:28:13 +00:00
SDL_timer.c: silence a minor warning.
This commit is contained in:
@@ -539,7 +539,7 @@ void SDL_InitTicks(void)
|
||||
SDL_TimerResolutionChanged, NULL);
|
||||
|
||||
tick_freq = SDL_GetPerformanceFrequency();
|
||||
SDL_assert(tick_freq > 0 && tick_freq <= SDL_MAX_UINT32);
|
||||
SDL_assert(tick_freq > 0 && tick_freq <= (Uint64)SDL_MAX_UINT32);
|
||||
|
||||
gcd = CalculateGCD(SDL_NS_PER_SECOND, (Uint32)tick_freq);
|
||||
tick_numerator_ns = (SDL_NS_PER_SECOND / gcd);
|
||||
|
Reference in New Issue
Block a user