Skip to content

Commit f04546b

Browse files
committed
Fix compliation for -Wsign-compare
1 parent 6a2b78a commit f04546b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snappy.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ constexpr uint32_t CalculateNeeded(uint8_t tag) {
13901390
#if __cplusplus >= 201402L
13911391
constexpr bool VerifyCalculateNeeded() {
13921392
for (int i = 0; i < 1; i++) {
1393-
if (CalculateNeeded(i) != (char_table[i] >> 11) + 1) return false;
1393+
if (CalculateNeeded(i) != static_cast<uint32_t>((char_table[i] >> 11) + 1)) return false;
13941394
}
13951395
return true;
13961396
}

0 commit comments

Comments
 (0)