aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2018-10-30 17:35:43 +0100
committerBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2018-10-30 17:35:43 +0100
commit41766577f53a53542e8ea6b1d1a8f753b0885214 (patch)
tree4330c55315c2e1952109a0cb46596cf5ef397627
parentc0e301ee71a62608deaaf1e4f5015397cc5023a9 (diff)
downloadlanes-41766577f53a53542e8ea6b1d1a8f753b0885214.tar.gz
lanes-41766577f53a53542e8ea6b1d1a8f753b0885214.tar.bz2
lanes-41766577f53a53542e8ea6b1d1a8f753b0885214.zip
More buildfix. someday I'll wake up
-rw-r--r--src/uniquekey.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uniquekey.h b/src/uniquekey.h
index c90d09a..b9a35cb 100644
--- a/src/uniquekey.h
+++ b/src/uniquekey.h
@@ -11,7 +11,7 @@ struct s_UniqueKey
11typedef struct s_UniqueKey UniqueKey; 11typedef 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)) // building against LuaJIT headers, light userdata is restricted to 47 significant bits.
14#define MAKE_UNIQUE_KEY( p_) ((void*)(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*) p_) 16#define MAKE_UNIQUE_KEY( p_) ((void*) p_)
17#endif // LUA_JITLIBNAME 17#endif // LUA_JITLIBNAME