Skip to content

Commit

Permalink
Fix clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Apr 29, 2023
1 parent 59e50d9 commit 1cedcae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/slang/util/Hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ struct hash<Enum, typename std::enable_if<std::is_enum<Enum>::value>::type> {
using is_avalanching = void;
uint64_t operator()(Enum e) const noexcept {
using underlying = typename std::underlying_type_t<Enum>;
return detail::hashing::hash(static_cast<underlying>(e));
return detail::hashing::hash(static_cast<uint64_t>(static_cast<underlying>(e)));
}
};

Expand Down

0 comments on commit 1cedcae

Please sign in to comment.