test/testplatform.c
changeset 1615 d5298e8f22b3
parent 1424 7a610f25c12f
child 1621 f12379c41042
     1.1 --- a/test/testplatform.c	Fri Mar 31 06:16:20 2006 +0000
     1.2 +++ b/test/testplatform.c	Fri Mar 31 06:27:47 2006 +0000
     1.3 @@ -21,26 +21,26 @@
     1.4  
     1.5  	if ( badsize(sizeof(Uint8), 1) ) {
     1.6  		if ( verbose )
     1.7 -			printf("sizeof(Uint8) != 1, instead = %d\n",
     1.8 +			printf("sizeof(Uint8) != 1, instead = %ul\n",
     1.9  								sizeof(Uint8));
    1.10  		++error;
    1.11  	}
    1.12  	if ( badsize(sizeof(Uint16), 2) ) {
    1.13  		if ( verbose )
    1.14 -			printf("sizeof(Uint16) != 2, instead = %d\n",
    1.15 +			printf("sizeof(Uint16) != 2, instead = %ul\n",
    1.16  								sizeof(Uint16));
    1.17  		++error;
    1.18  	}
    1.19  	if ( badsize(sizeof(Uint32), 4) ) {
    1.20  		if ( verbose )
    1.21 -			printf("sizeof(Uint32) != 4, instead = %d\n",
    1.22 +			printf("sizeof(Uint32) != 4, instead = %ul\n",
    1.23  								sizeof(Uint32));
    1.24  		++error;
    1.25  	}
    1.26  #ifdef SDL_HAS_64BIT_TYPE
    1.27  	if ( badsize(sizeof(Uint64), 8) ) {
    1.28  		if ( verbose )
    1.29 -			printf("sizeof(Uint64) != 8, instead = %d\n",
    1.30 +			printf("sizeof(Uint64) != 8, instead = %ul\n",
    1.31  								sizeof(Uint64));
    1.32  		++error;
    1.33  	}
    1.34 @@ -110,7 +110,11 @@
    1.35  	}
    1.36  #ifdef SDL_HAS_64BIT_TYPE
    1.37  	if ( verbose ) {
    1.38 +#ifdef _MSC_VER
    1.39 +		printf("Value 64 = 0x%I64X, swapped = 0x%I64X\n", value64, SDL_Swap64(value64));
    1.40 +#else
    1.41  		printf("Value 64 = 0x%llX, swapped = 0x%llX\n", value64, SDL_Swap64(value64));
    1.42 +#endif
    1.43  	}
    1.44  	if ( SDL_Swap64(value64) != swapped64 ) {
    1.45  		if ( verbose ) {