Skip to content

Commit

Permalink
Change RoundBuckets to uint64_t Should fix kpu#105
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Oct 22, 2017
1 parent d30dcf7 commit 07597d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/probing_hash_table.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 07597d6

Please sign in to comment.