Skip to content

Commit 41fc6c7

Browse files
committed
Fix assertion
1 parent 88ba25e commit 41fc6c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/src/arrow/util/rle_bitmap_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ class RleRunToBitmapDecoder {
183183

184184
/// Get batch in full bytes using memset.
185185
[[nodiscard]] rle_size_t GetBatchFullBytes(BitmapSpanMut out, rle_size_t batch_size) {
186-
ARROW_DCHECK(out.bit_start() == 0 || batch_size == 0);
187186
const auto n_bytes = std::min(batch_size, remaining()) / 8;
187+
ARROW_DCHECK(out.bit_start() == 0 || n_bytes == 0);
188188
std::memset(out.data(), value_pattern_, n_bytes);
189189
const auto n_vals = 8 * n_bytes;
190190
AdvanceUnsafe(n_vals);

0 commit comments

Comments
 (0)