Skip to content

Commit

Permalink
Fix compliation for -Wsign-compare
Browse files Browse the repository at this point in the history
  • Loading branch information
LIBA-S committed Jun 10, 2022
1 parent 6a2b78a commit f04546b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snappy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ constexpr uint32_t CalculateNeeded(uint8_t tag) {
#if __cplusplus >= 201402L
constexpr bool VerifyCalculateNeeded() {
for (int i = 0; i < 1; i++) {
if (CalculateNeeded(i) != (char_table[i] >> 11) + 1) return false;
if (CalculateNeeded(i) != static_cast<uint32_t>((char_table[i] >> 11) + 1)) return false;
}
return true;
}
Expand Down

0 comments on commit f04546b

Please sign in to comment.