Fixed warning C4389: '==': signed/unsigned mismatch

main
Sam Lantinga 2024-03-19 17:04:29 -07:00
parent da027ec3ee
commit 3316587113
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ static int time_dateTimeConversion(void *arg)
SDLTest_AssertPass("Call to SDL_DateTimeToTime() (one day advanced)");
SDLTest_AssertCheck(result == 0, "Check result value, expected 0, got: %i", result);
result = (ticks[0] + SDL_SECONDS_TO_NS(86400)) == ticks[1];
result = (ticks[0] + (Sint64)SDL_SECONDS_TO_NS(86400)) == ticks[1];
SDLTest_AssertCheck(result, "Check that the difference is exactly 86400 seconds, got: %" SDL_PRIs64, (Sint64)SDL_NS_TO_SECONDS(ticks[1] - ticks[0]));
/* Check dates that overflow/underflow an SDL_Time */