Fixed warnings

This commit is contained in:
Sam Lantinga committed 2023-01-03 15:59:35 -08:00
1 parent 95e5417d2e
commit 32c077216c
5 files changed
+9 -9

No files matched your search

+2 -2
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