Browse Source

Fixed warning C4244: '=': conversion from '__int64' to 'int', possible loss of data

Sam Lantinga 1 year ago
parent
commit
b1215272ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/time/windows/SDL_systime.c

+ 1 - 1
src/time/windows/SDL_systime.c

@@ -111,7 +111,7 @@ int SDL_TimeToDateTime(SDL_Time ticks, SDL_DateTime *dt, SDL_bool localTime)
                 /* Calculate the difference for the UTC offset. */
                 SystemTimeToFileTime(&local_st, &local_ft);
                 const SDL_Time local_ticks = SDL_TimeFromWindows(local_ft.dwLowDateTime, local_ft.dwHighDateTime);
-                dt->utc_offset = SDL_NS_TO_SECONDS(local_ticks - ticks);
+                dt->utc_offset = (int)SDL_NS_TO_SECONDS(local_ticks - ticks);
                 st = &local_st;
             }
         } else {