endian-check bug?
This commit is contained in:
1 parent
d5c7b742ad
commit
e11b86cf4c
2 files changed
+4
-4
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user