From c582a89f78b62bab6ed3ff0707b415e3391c39a6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 19 Mar 2024 14:53:49 -0700 Subject: [PATCH] Fixed build warning --- 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 088722aa5..7be0e0cac 100644 --- a/src/time/unix/SDL_systime.c +++ b/src/time/unix/SDL_systime.c @@ -182,7 +182,7 @@ int SDL_TimeToDateTime(SDL_Time ticks, SDL_DateTime *dt, SDL_bool localTime) dt->second = tm->tm_sec; dt->nanosecond = ticks % SDL_NS_PER_SECOND; dt->day_of_week = tm->tm_wday; - dt->utc_offset = tm->tm_gmtoff; + dt->utc_offset = (int)tm->tm_gmtoff; return 0; }