Merge pull request #33525 from kitaisreal/hash-table-constant-fix

HashTable constant fix
This commit is contained in:
Maksim Kita 2022-01-12 19:39:49 +03:00 committed by GitHub
commit 2088570a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -323,7 +323,7 @@ private:
UInt64 address = 0;
};
static const UInt64 mask = 0xFFFFFFFFFFFFFFFC;
static const UInt32 medium_set_size_max = 1UL << medium_set_power2_max;
static const UInt32 medium_set_size_max = 1ULL << medium_set_power2_max;
};
}

View File

@ -280,7 +280,7 @@ public:
if ((reinterpret_cast<uintptr_t>(p) & 2048) == 0)
{
memcpy(&n[0], p, 8);
n[0] &= -1ul >> s;
n[0] &= -1ULL >> s;
}
else
{

View File

@ -114,7 +114,7 @@ public:
if ((reinterpret_cast<uintptr_t>(p) & 2048) == 0)
{
memcpy(&n[0], p, 8);
n[0] &= -1ul >> s;
n[0] &= -1ULL >> s;
}
else
{

View File

@ -23,7 +23,7 @@ static constexpr auto NS = 1000000000UL;
/// Tracking window. Actually the size is not really important. We just want to avoid
/// throttles when there are no actions for a long period time.
static const double window_ns = 1UL * NS;
static const double window_ns = 1ULL * NS;
void Throttler::add(size_t amount)
{