From 271755384a7e4157b8554d77cd7a9d69448d8cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 13 Feb 2016 18:29:45 -0800 Subject: [PATCH] Fixed readUnaligned. --- include/bx/hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bx/hash.h b/include/bx/hash.h index de3f21c..4250115 100644 --- a/include/bx/hash.h +++ b/include/bx/hash.h @@ -103,7 +103,7 @@ namespace bx static void readUnaligned(const void* _data, uint32_t& _out) { const uint8_t* data = (const uint8_t*)_data; - if (BX_ENABLED(BX_CPU_ENDIAN_LITTLE) ) + if (BX_ENABLED(BX_CPU_ENDIAN_BIG) ) { _out = 0 | data[0]<<24