Fixed warnings

This commit is contained in:
Sam Lantinga
2023-01-03 15:59:35 -08:00
parent 95e5417d2e
commit 32c077216c
5 changed files with 9 additions and 9 deletions

View File

@@ -158,8 +158,8 @@ void SDL_DelayNS(Uint64 ns)
/* Set the timeout interval */
#if HAVE_NANOSLEEP
remaining.tv_sec = (ns / SDL_NS_PER_SECOND);
remaining.tv_nsec = (ns % SDL_NS_PER_SECOND);
remaining.tv_sec = (time_t)(ns / SDL_NS_PER_SECOND);
remaining.tv_nsec = (long)(ns % SDL_NS_PER_SECOND);
#else
then = SDL_GetTicksNS();
#endif