diff options
author | Kenneth Heafield <github@kheafield.com> | 2017-10-23 00:29:58 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2017-10-23 00:29:58 +0300 |
commit | 07597d64c2b6edbcd08f6cd7b39f9b8576348259 (patch) | |
tree | 0df53c693b22f55368cb45b88e6f25413910e5fb /util | |
parent | d30dcf757a1e9bb58907ccccca577bf736a129ba (diff) |
Change RoundBuckets to uint64_t Should fix #105
Diffstat (limited to 'util')
-rw-r--r-- | util/probing_hash_table.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/probing_hash_table.hh b/util/probing_hash_table.hh index 438de92..18cae85 100644 --- a/util/probing_hash_table.hh +++ b/util/probing_hash_table.hh @@ -30,7 +30,7 @@ class DivMod { public: explicit DivMod(std::size_t buckets) : buckets_(buckets) {} - static std::size_t RoundBuckets(std::size_t from) { + static std::uint64_t RoundBuckets(std::uint64_t from) { return from; } @@ -58,7 +58,7 @@ class Power2Mod { } // Round up to next power of 2. - static std::size_t RoundBuckets(std::size_t from) { + static std::uint64_t RoundBuckets(std::uint64_t from) { --from; from |= from >> 1; from |= from >> 2; |