From 3316587113d94cc110848bfabb83e0271d50ee53 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 19 Mar 2024 17:04:29 -0700 Subject: [PATCH] Fixed warning C4389: '==': signed/unsigned mismatch --- test/testautomation_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testautomation_time.c b/test/testautomation_time.c index 11f00a2b5..1385ff98a 100644 --- a/test/testautomation_time.c +++ b/test/testautomation_time.c @@ -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 */