From 8caebf823af69d72dbf1d0bf9beba2900a0522d9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 29 Jul 2024 14:44:02 -0700 Subject: [PATCH] Revert "Fixed warning: result of comparison of constant 9223372035 with expression of type '__kernel_old_time_t' (aka 'long') is always true" This reverts commit 299d1819848e1e97179125ff0bbf34d1db497515. --- src/time/unix/SDL_systime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time/unix/SDL_systime.c b/src/time/unix/SDL_systime.c index 0a9353415a..8f3cb7fc6e 100644 --- a/src/time/unix/SDL_systime.c +++ b/src/time/unix/SDL_systime.c @@ -107,7 +107,7 @@ int SDL_GetCurrentTime(SDL_Time *ticks) struct timespec tp; if (clock_gettime(CLOCK_REALTIME, &tp) == 0) { - //tp.tv_sec = SDL_min(tp.tv_sec, SDL_NS_TO_SECONDS(SDL_MAX_TIME) - 1); + tp.tv_sec = SDL_min(tp.tv_sec, SDL_NS_TO_SECONDS(SDL_MAX_TIME) - 1); *ticks = SDL_SECONDS_TO_NS(tp.tv_sec) + tp.tv_nsec; return 0; }