mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-14 22:05:59 +00:00
Fix 64-bit timeval/timespec delta calculations
This commit is contained in:
@@ -61,7 +61,7 @@ SDL_GetTicks64(void)
|
||||
}
|
||||
|
||||
gettimeofday(&now, NULL);
|
||||
return (((Uint64)(now.tv_sec-start.tv_sec)) * 1000) + (((Uint64) (now.tv_usec-start.tv_usec)) / 1000);
|
||||
return (Uint64) (((Sint64) (now.tv_sec - start.tv_sec) * 1000) + ((now.tv_usec - start.tv_usec) / 1000));
|
||||
}
|
||||
|
||||
Uint64
|
||||
|
Reference in New Issue
Block a user