mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 13:03:06 +01:00
Fixed hash unaligned access.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user