diff test/testplatform.c @ 1424:7a610f25c12f

Updated MacOS Classic MPW build
author Sam Lantinga <slouken@libsdl.org>
date Fri, 24 Feb 2006 09:57:14 +0000
parents 638da75f9ab8
children d5298e8f22b3
line wrap: on
line diff
--- a/test/testplatform.c	Fri Feb 24 08:17:28 2006 +0000
+++ b/test/testplatform.c	Fri Feb 24 09:57:14 2006 +0000
@@ -78,7 +78,7 @@
 		printf("Detected a %s endian machine.\n",
 			(SDL_BYTEORDER == SDL_LIL_ENDIAN) ? "little" : "big");
 	}
-	if ( *((char *)&value) == '1' ) {
+	if ( (*((char *)&value) >> 4) == 0x1 ) {
 		real_byteorder = SDL_BIG_ENDIAN;
 	} else {
 		real_byteorder = SDL_LIL_ENDIAN;