Skip to content

Commit

Permalink
testplatform.c: always use %I64 instead of %ll for all windows builds;
Browse files Browse the repository at this point in the history
fixes MinGW gcc warnings:

testplatform.c:115:3: warning: unknown conversion type character 'l' in format
testplatform.c:115:3: warning: unknown conversion type character 'l' in format
testplatform.c:115:3: warning: too many arguments for format
  • Loading branch information
sezero committed Jul 15, 2021
1 parent 1cc3061 commit 19abb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testplatform.c
Expand Up @@ -109,7 +109,7 @@ int TestEndian(SDL_bool verbose)
}
#ifdef SDL_HAS_64BIT_TYPE
if ( verbose ) {
#ifdef _MSC_VER
#ifdef _WIN32
printf("Value 64 = 0x%I64X, swapped = 0x%I64X\n", value64, SDL_Swap64(value64));
#else
printf("Value 64 = 0x%llX, swapped = 0x%llX\n", (unsigned long long) value64, (unsigned long long) SDL_Swap64(value64));
Expand Down

0 comments on commit 19abb9c

Please sign in to comment.