From ea4e736aae107180666fc6fc0082019258e5b2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 21 Nov 2016 09:51:44 -0800 Subject: [PATCH] Fixed hash unaligned access. --- include/bx/hash.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/bx/hash.h b/include/bx/hash.h index 6e2f084..3758718 100644 --- a/include/bx/hash.h +++ b/include/bx/hash.h @@ -30,8 +30,7 @@ namespace bx void add(const void* _data, int _len) { - if (BX_ENABLED(BX_PLATFORM_EMSCRIPTEN) - && BX_UNLIKELY(!isPtrAligned(_data, 4) ) ) + if (BX_UNLIKELY(!isPtrAligned(_data, 4) ) ) { addUnaligned(_data, _len); return;