mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Fixed warning C4244: '=': conversion from '__int64' to 'int', possible loss of data
This commit is contained in:
parent
2265d22f75
commit
b1215272ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue