From e7286344975fc51379e34a1f4e6016dd94bb7de5 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 25 Jan 2018 13:23:12 +0200 Subject: [PATCH] Use dummy Get...() functions for all Intel targets 64-bit Intel targets built with GCC/Clang were using strict memory alignment versions of GetShort(), GetInt(), GetBigInt() functions --- src/m_swap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_swap.h b/src/m_swap.h index 982aa5ca1..1ab82d3b1 100644 --- a/src/m_swap.h +++ b/src/m_swap.h @@ -177,7 +177,7 @@ inline int BigLong (int x) // Data accessors, since some data is highly likely to be unaligned. -#if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) +#if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__x86_64__) inline int GetShort(const unsigned char *foo) { return *(const short *)foo;