SDL_timer.c: silence a minor warning.
This commit is contained in:
parent
0a33ed7a2b
commit
c41a76657e
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ void SDL_InitTicks(void)
|
||||||
SDL_TimerResolutionChanged, NULL);
|
SDL_TimerResolutionChanged, NULL);
|
||||||
|
|
||||||
tick_freq = SDL_GetPerformanceFrequency();
|
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);
|
gcd = CalculateGCD(SDL_NS_PER_SECOND, (Uint32)tick_freq);
|
||||||
tick_numerator_ns = (SDL_NS_PER_SECOND / gcd);
|
tick_numerator_ns = (SDL_NS_PER_SECOND / gcd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue