From 41766577f53a53542e8ea6b1d1a8f753b0885214 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 30 Oct 2018 17:35:43 +0100 Subject: More buildfix. someday I'll wake up --- src/uniquekey.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 typedef struct s_UniqueKey UniqueKey; #if defined(LUA_JITLIBNAME) && (defined(__x86_64__) || defined(_M_X64)) // building against LuaJIT headers, light userdata is restricted to 47 significant bits. -#define MAKE_UNIQUE_KEY( p_) ((void*)(p_) & 0x7fffffffffffull) +#define MAKE_UNIQUE_KEY( p_) ((void*)((ptrdiff_t)(p_) & 0x7fffffffffffull)) #else // LUA_JITLIBNAME #define MAKE_UNIQUE_KEY( p_) ((void*) p_) #endif // LUA_JITLIBNAME -- cgit v1.2.3-55-g6feb