Browse Source

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.
Sam Lantinga 8 months ago
parent
commit
8caebf823a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/time/unix/SDL_systime.c

+ 1 - 1
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;
     }