We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da1eabd commit 8c2ceceCopy full SHA for 8c2cece
llvm/lib/CAS/OnDiskTrieRawHashMap.cpp
@@ -114,7 +114,7 @@ class SubtrieHandle {
114
using SlotT = std::atomic<int64_t>;
115
116
static int64_t getSlotsSize(uint32_t NumBits) {
117
- return sizeof(int64_t) * (1u << NumBits);
+ return sizeof(int64_t) * (1ull << NumBits);
118
}
119
120
static int64_t getSize(uint32_t NumBits) {
@@ -191,7 +191,8 @@ class SubtrieHandle {
191
MutableArrayRef<SlotT> Slots;
192
193
static MutableArrayRef<SlotT> getSlots(Header &H) {
194
- return MutableArrayRef(reinterpret_cast<SlotT *>(&H + 1), 1u << H.NumBits);
+ return MutableArrayRef(reinterpret_cast<SlotT *>(&H + 1),
195
+ 1ull << H.NumBits);
196
197
};
198
0 commit comments