We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d03c7eb commit 5fe9995Copy full SHA for 5fe9995
cpp/src/arrow/util/rle_encoding_internal.h
@@ -670,8 +670,8 @@ auto RleBitPackedParser::PeekImpl(Handler&& handler) const
670
const uint32_t count = run_len_type >> 1;
671
if (is_bit_packed) {
672
// Bit-packed run
673
- constexpr auto kMaxCount = bit_util::CeilDiv(internal::max_size_for_v<rle_size_t>, 8);
674
- if (ARROW_PREDICT_FALSE(count == 0 || count >= kMaxCount)) {
+ constexpr auto kMaxCount = internal::max_size_for_v<rle_size_t> / 8;
+ if (ARROW_PREDICT_FALSE(count == 0 || count > kMaxCount)) {
675
// Illegal number of encoded values
676
return {0, ControlFlow::Break};
677
}
0 commit comments