Skip to content

Commit

Permalink
tentative fix for #224.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Dec 9, 2023
1 parent 0f0ecf7 commit d3f0b98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parallel_hashmap/phmap_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -4377,14 +4377,14 @@ namespace memory_internal {
// ----------------------------------------------------------------------------
template <class Pair, class = std::true_type>
struct OffsetOf {
static constexpr size_t kFirst = (size_t)-1;
static constexpr size_t kSecond = (size_t)-1;
static constexpr size_t kFirst = static_cast<size_t>(-1);
static constexpr size_t kSecond = static_cast<size_t>(-1);
};

template <class Pair>
struct OffsetOf<Pair, typename std::is_standard_layout<Pair>::type>
{
static constexpr size_t kFirst = offsetof(Pair, first);
static constexpr size_t kFirst = offsetof(Pair, first);
static constexpr size_t kSecond = offsetof(Pair, second);
};

Expand Down

0 comments on commit d3f0b98

Please sign in to comment.