endian-check bug?

This commit is contained in:
ejcoumans
2006-08-11 23:38:38 +00:00
parent d5c7b742ad
commit e11b86cf4c
2 changed files with 4 additions and 4 deletions

View File

@@ -451,9 +451,9 @@ int BspLoader::getMachineEndianness()
long int i = 1;
const char *p = (const char *) &i;
if (p[0] == 1) // Lowest address contains the least significant byte
return LITTLE_ENDIAN;
return BSP_LITTLE_ENDIAN;
else
return BIG_ENDIAN;
return BSP_BIG_ENDIAN;
}
short BspLoader::LittleShort (short l)

View File

@@ -451,9 +451,9 @@ int BspLoader::getMachineEndianness()
long int i = 1;
const char *p = (const char *) &i;
if (p[0] == 1) // Lowest address contains the least significant byte
return LITTLE_ENDIAN;
return BSP_LITTLE_ENDIAN;
else
return BIG_ENDIAN;
return BSP_BIG_ENDIAN;
}
short BspLoader::LittleShort (short l)