Fixed some printf() compiler warnings in test/testplatform.c SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Tue, 23 Aug 2011 02:57:36 -0400
branchSDL-1.2
changeset 5637d39fe8e7d26a
parent 5629 e594196ba99f
child 5639 72659c5c8616
Fixed some printf() compiler warnings in test/testplatform.c
test/testplatform.c
     1.1 --- a/test/testplatform.c	Mon Aug 22 02:11:56 2011 -0400
     1.2 +++ b/test/testplatform.c	Tue Aug 23 02:57:36 2011 -0400
     1.3 @@ -21,27 +21,27 @@
     1.4  
     1.5  	if ( badsize(sizeof(Uint8), 1) ) {
     1.6  		if ( verbose )
     1.7 -			printf("sizeof(Uint8) != 1, instead = %ul\n",
     1.8 -								sizeof(Uint8));
     1.9 +			printf("sizeof(Uint8) != 1, instead = %lu\n",
    1.10 +								(unsigned long) sizeof(Uint8));
    1.11  		++error;
    1.12  	}
    1.13  	if ( badsize(sizeof(Uint16), 2) ) {
    1.14  		if ( verbose )
    1.15 -			printf("sizeof(Uint16) != 2, instead = %ul\n",
    1.16 -								sizeof(Uint16));
    1.17 +			printf("sizeof(Uint16) != 2, instead = %lu\n",
    1.18 +								(unsigned long) sizeof(Uint16));
    1.19  		++error;
    1.20  	}
    1.21  	if ( badsize(sizeof(Uint32), 4) ) {
    1.22  		if ( verbose )
    1.23 -			printf("sizeof(Uint32) != 4, instead = %ul\n",
    1.24 -								sizeof(Uint32));
    1.25 +			printf("sizeof(Uint32) != 4, instead = %lu\n",
    1.26 +								(unsigned long) sizeof(Uint32));
    1.27  		++error;
    1.28  	}
    1.29  #ifdef SDL_HAS_64BIT_TYPE
    1.30  	if ( badsize(sizeof(Uint64), 8) ) {
    1.31  		if ( verbose )
    1.32 -			printf("sizeof(Uint64) != 8, instead = %ul\n",
    1.33 -								sizeof(Uint64));
    1.34 +			printf("sizeof(Uint64) != 8, instead = %lu\n",
    1.35 +								(unsigned long) sizeof(Uint64));
    1.36  		++error;
    1.37  	}
    1.38  #else
    1.39 @@ -113,7 +113,7 @@
    1.40  #ifdef _MSC_VER
    1.41  		printf("Value 64 = 0x%I64X, swapped = 0x%I64X\n", value64, SDL_Swap64(value64));
    1.42  #else
    1.43 -		printf("Value 64 = 0x%llX, swapped = 0x%llX\n", value64, SDL_Swap64(value64));
    1.44 +		printf("Value 64 = 0x%llX, swapped = 0x%llX\n", (unsigned long long) value64, (unsigned long long) SDL_Swap64(value64));
    1.45  #endif
    1.46  	}
    1.47  	if ( SDL_Swap64(value64) != swapped64 ) {