Skip to content

Commit f042608

Browse files
committed
Remove unsigned < 0 check
uint8_t can never be < 0 so this addresses a warning from gcc.
1 parent c7a26d2 commit f042608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpc/include/cpc_compressor_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ uint8_t cpc_compressor<A>::determine_pseudo_phase(uint8_t lg_k, uint32_t c) {
449449
if (lg_k < 4) throw std::logic_error("lgK < 4");
450450
const size_t tmp = c >> (lg_k - 4);
451451
const uint8_t phase = tmp & 15;
452-
if (phase < 0 || phase >= 16) throw std::out_of_range("wrong phase");
452+
if (phase >= 16) throw std::out_of_range("wrong phase");
453453
return phase;
454454
}
455455
}

0 commit comments

Comments
 (0)