diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2018-12-28 17:48:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-28 17:48:47 +0100 |
commit | 52934d46eed850c23a9b21125be73e987f34e772 (patch) | |
tree | a8a9f56fd6d9720da232e7245971347fa9c8fe2f | |
parent | 2ab88ebe33f5e90fcc6e90eb45ef35157875fca9 (diff) | |
parent | aa748d88c76a64f0926f0a760843ac7d5fabdc83 (diff) | |
download | lanes-52934d46eed850c23a9b21125be73e987f34e772.tar.gz lanes-52934d46eed850c23a9b21125be73e987f34e772.tar.bz2 lanes-52934d46eed850c23a9b21125be73e987f34e772.zip |
Merge pull request #170 from eligovision/ios_arm64_hotfix
[*] Hotfix for 64-bit iOS with LuaJIT.
-rw-r--r-- | src/uniquekey.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uniquekey.h b/src/uniquekey.h index b3ef7dc..0cef3a1 100644 --- a/src/uniquekey.h +++ b/src/uniquekey.h | |||
@@ -10,7 +10,7 @@ struct s_UniqueKey | |||
10 | }; | 10 | }; |
11 | typedef struct s_UniqueKey UniqueKey; | 11 | typedef struct s_UniqueKey UniqueKey; |
12 | 12 | ||
13 | #if defined(LUA_JITLIBNAME) && (defined(__x86_64__) || defined(_M_X64)) // building against LuaJIT headers, light userdata is restricted to 47 significant bits. | 13 | #if defined(LUA_JITLIBNAME) && (defined(__x86_64__) || defined(_M_X64) || defined(__LP64__)) // building against LuaJIT headers, light userdata is restricted to 47 significant bits. |
14 | #define MAKE_UNIQUE_KEY( p_) ((void*)((ptrdiff_t)(p_) & 0x7fffffffffffull)) | 14 | #define MAKE_UNIQUE_KEY( p_) ((void*)((ptrdiff_t)(p_) & 0x7fffffffffffull)) |
15 | #else // LUA_JITLIBNAME | 15 | #else // LUA_JITLIBNAME |
16 | #define MAKE_UNIQUE_KEY( p_) ((void*)(ptrdiff_t)(p_)) | 16 | #define MAKE_UNIQUE_KEY( p_) ((void*)(ptrdiff_t)(p_)) |