Fix endian test for big-endian hosts
The uint16_t cast truncated the magic value to 0x00000304, making the first byte 0 (eByteOrderInvalid) on big endian hosts. Reported by Justin Hibbits. llvm-svn: 213861
Loading
Please sign in to comment
The uint16_t cast truncated the magic value to 0x00000304, making the first byte 0 (eByteOrderInvalid) on big endian hosts. Reported by Justin Hibbits. llvm-svn: 213861