Procházet zdrojové kódy

test/testautomation_stdlib.c: fix gcc warning on 32 bit

test/testautomation_stdlib.c:361: warning: integer constant is too large for 'long' type
Ozkan Sezer před 6 měsíci
rodič
revize
41dfe2c246
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      test/testautomation_stdlib.c

+ 1 - 1
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";