Skip to content

Commit

Permalink
test/testautomation_stdlib.c: fix gcc warning on 32 bit
Browse files Browse the repository at this point in the history
test/testautomation_stdlib.c:361: warning: integer constant is too large for 'long' type
  • Loading branch information
sezero committed Oct 10, 2024
1 parent 73b995f commit 41dfe2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testautomation_stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 41dfe2c

Please sign in to comment.