Skip to content

Commit

Permalink
Fix warnings with msvc.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Dec 9, 2023
1 parent d3f0b98 commit 97e2d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parallel_hashmap/phmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ inline size_t H1(size_t hashval, const ctrl_t* ) {
#endif


inline h2_t H2(size_t hashval) { return (h2_t)(ctrl_t)(hashval & 0x7F); }
inline h2_t H2(size_t hashval) { return (ctrl_t)(hashval & 0x7F); }

inline bool IsEmpty(ctrl_t c) { return c == kEmpty; }
inline bool IsFull(ctrl_t c) { return c >= static_cast<ctrl_t>(0); }
Expand Down Expand Up @@ -4582,7 +4582,7 @@ struct HashtableDebugAccess<Set, typename std::enable_if<has_member_type_raw_has
auto seq = set.probe(hashval);
while (true) {
priv::Group g{set.ctrl_ + seq.offset()};
for (uint32_t i : g.Match(priv::H2(hashval))) {
for (uint32_t i : g.Match((h2_t)priv::H2(hashval))) {
if (Traits::apply(
typename Set::template EqualElement<typename Set::key_type>{
key, set.eq_ref()},
Expand Down

0 comments on commit 97e2d45

Please sign in to comment.