test/testplatform.c
changeset 1424 7a610f25c12f
parent 1421 638da75f9ab8
child 1615 d5298e8f22b3
     1.1 --- a/test/testplatform.c	Fri Feb 24 08:17:28 2006 +0000
     1.2 +++ b/test/testplatform.c	Fri Feb 24 09:57:14 2006 +0000
     1.3 @@ -78,7 +78,7 @@
     1.4  		printf("Detected a %s endian machine.\n",
     1.5  			(SDL_BYTEORDER == SDL_LIL_ENDIAN) ? "little" : "big");
     1.6  	}
     1.7 -	if ( *((char *)&value) == '1' ) {
     1.8 +	if ( (*((char *)&value) >> 4) == 0x1 ) {
     1.9  		real_byteorder = SDL_BIG_ENDIAN;
    1.10  	} else {
    1.11  		real_byteorder = SDL_LIL_ENDIAN;