From c41a76657eaf9be64eb0d0040e66912f012127be Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 12 Apr 2023 12:55:40 +0300 Subject: [PATCH] SDL_timer.c: silence a minor warning. --- src/timer/SDL_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer/SDL_timer.c b/src/timer/SDL_timer.c index 11d780a3b..5e7f0b0f1 100644 --- a/src/timer/SDL_timer.c +++ b/src/timer/SDL_timer.c @@ -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);