Fix endian test for big-endian hosts
authorEd Maste <emaste@freebsd.org>
Thu, 24 Jul 2014 13:28:16 +0000 (13:28 +0000)
committerEd Maste <emaste@freebsd.org>
Thu, 24 Jul 2014 13:28:16 +0000 (13:28 +0000)
commit3feafa78bdbe04e35119a6df6d2a7f043707c542
tree8b2e56b68d15616433b4d6c8f70d541b19b69b3f
parenta9efa1ac3e012d1c6d2f5c4e70de7109458fbe17
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
lldb/include/lldb/Host/Endian.h