From 41dfe2c24609027bf61f685237df35f1e6d1c310 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 10 Oct 2024 21:10:24 +0300 Subject: [PATCH] test/testautomation_stdlib.c: fix gcc warning on 32 bit test/testautomation_stdlib.c:361: warning: integer constant is too large for 'long' type --- test/testautomation_stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testautomation_stdlib.c b/test/testautomation_stdlib.c index 9ed7f31289..a2ac671988 100644 --- a/test/testautomation_stdlib.c +++ b/test/testautomation_stdlib.c @@ -358,7 +358,7 @@ static int SDLCALL stdlib_snprintf(void *arg) "Check result value, expected: %d, got: %d", (int)SDL_strlen(expected), result); if (sizeof(void *) >= 8) { - result = SDL_snprintf(text, sizeof(text), "%p", (void *)0x1ba07bddf60L); + result = SDL_snprintf(text, sizeof(text), "%p", (void *)SDL_SINT64_C(0x1ba07bddf60)); expected = "0x1ba07bddf60"; expected2 = "000001BA07BDDF60"; expected3 = "000001ba07bddf60";