diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2024-03-31 17:44:38 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2024-03-31 17:44:38 +0200 |
commit | 011898fab90103ff638c5e6608956b9817e7da13 (patch) | |
tree | df615da6e6acfd80d7ac1128129ff8ffe1d13f71 /src/uniquekey.h | |
parent | 79d91901745e0c65443607c804533f06575b43ad (diff) | |
download | lanes-011898fab90103ff638c5e6608956b9817e7da13.tar.gz lanes-011898fab90103ff638c5e6608956b9817e7da13.tar.bz2 lanes-011898fab90103ff638c5e6608956b9817e7da13.zip |
C++ migration: fix some warnings in 32 bits builds
Diffstat (limited to 'src/uniquekey.h')
-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 | } |