Skip to content

Commit

Permalink
type_info: avoid gcc-7 -Wsign-conversion warning (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloisklink authored Aug 27, 2023
1 parent 0c866ba commit 1137725
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uvw/type_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ namespace internal {
auto value = offset;

while(*curr != 0) {
value = (value ^ static_cast<std::uint32_t>(*(curr++))) * prime;
auto curr_val_int = static_cast<std::uint32_t>(*(curr++));
value = (value ^ curr_val_int) * prime;
}

return value;
Expand Down

0 comments on commit 1137725

Please sign in to comment.