Fixed integral constant overflow

This commit is contained in:
Sam Lantinga
2023-01-04 08:46:58 -08:00
parent 5fab64f862
commit 86c6376140
4 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ void SDL_DelayNS(Uint64 ns)
#endif
{
const Uint64 max_delay = 0xffffffff * SDL_NS_PER_MS;
const Uint64 max_delay = 0xffffffffLLU * SDL_NS_PER_MS;
if (ns > max_delay) {
ns = max_delay;
}