diff options
Diffstat (limited to '')
-rw-r--r-- | src/uniquekey.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uniquekey.h b/src/uniquekey.h index bd3b61f..e592f0a 100644 --- a/src/uniquekey.h +++ b/src/uniquekey.h | |||
@@ -13,11 +13,11 @@ class UniqueKey | |||
13 | 13 | ||
14 | public: | 14 | public: |
15 | 15 | ||
16 | constexpr UniqueKey(uintptr_t val_) | 16 | constexpr UniqueKey(uint64_t val_) |
17 | #if LUAJIT_FLAVOR() == 64 // building against LuaJIT headers for 64 bits, light userdata is restricted to 47 significant bits, because LuaJIT uses the other bits for internal optimizations | 17 | #if LUAJIT_FLAVOR() == 64 // building against LuaJIT headers for 64 bits, light userdata is restricted to 47 significant bits, because LuaJIT uses the other bits for internal optimizations |
18 | : m_storage{ val_ & 0x7fffffffffffull } | 18 | : m_storage{ static_cast<uintptr_t>(val_ & 0x7fffffffffffull) } |
19 | #else // LUAJIT_FLAVOR() | 19 | #else // LUAJIT_FLAVOR() |
20 | : m_storage{ val_ } | 20 | : m_storage{ static_cast<uintptr_t>(val_) } |
21 | #endif // LUAJIT_FLAVOR() | 21 | #endif // LUAJIT_FLAVOR() |
22 | { | 22 | { |
23 | } | 23 | } |