0

Implement straggler standard integer types

This commit is contained in:
Wunkolo
2019-06-26 10:29:10 -07:00
parent 5b212dc585
commit 22840d5a97
4 changed files with 14 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ static int32_t endianness = UNKNOWN_ENDIAN;
void init_endian(void) {
/* figure out what our endianness is! */
int16_t word = 0x0001;
char* byte = (char*)(&word);
uint8_t* byte = (uint8_t*)(&word);
endianness = byte[0] ? LITTLE_ENDIAN : BIG_ENDIAN;
}