aboutsummaryrefslogtreecommitdiff
path: root/src/uniquekey.h
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-11-11 08:50:49 +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-11-11 08:50:49 +0100
commitb0bb224ce6c4bd769a3f1a868e832d9d38f6e63e (patch)
tree1810e92a24c95fa707b6b9bd56fd2526cdc86381 /src/uniquekey.h
parenta3ec8e0b6b5cc88063893fd7226599727a41dd29 (diff)
downloadlanes-b0bb224ce6c4bd769a3f1a868e832d9d38f6e63e.tar.gz
lanes-b0bb224ce6c4bd769a3f1a868e832d9d38f6e63e.tar.bz2
lanes-b0bb224ce6c4bd769a3f1a868e832d9d38f6e63e.zip
fix a bunch of compilation warnings (issue #157)
Diffstat (limited to 'src/uniquekey.h')
-rw-r--r--src/uniquekey.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uniquekey.h b/src/uniquekey.h
index b9a35cb..b3ef7dc 100644
--- a/src/uniquekey.h
+++ b/src/uniquekey.h
@@ -13,7 +13,7 @@ typedef struct s_UniqueKey UniqueKey;
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*)((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*) p_) 16#define MAKE_UNIQUE_KEY( p_) ((void*)(ptrdiff_t)(p_))
17#endif // LUA_JITLIBNAME 17#endif // LUA_JITLIBNAME
18 18
19#define DECLARE_UNIQUE_KEY( name_) UniqueKey name_ 19#define DECLARE_UNIQUE_KEY( name_) UniqueKey name_