Skip to content

Commit

Permalink
fix stupid error
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Jan 30, 2024
1 parent 6f9d865 commit fb2bb77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/io/compressed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class CompressedInputStream::Impl {
int64_t compressed_avail = compressed_ ? compressed_->size() - compressed_pos_ : 0;
if (compressed_avail == 0) {
// Ensure compressed_ buffer is allocated with kChunkSize.
if (supports_zero_copy_from_raw_) {
if (!supports_zero_copy_from_raw_) {
if (compressed_for_non_zero_copy_ == nullptr) {
ARROW_ASSIGN_OR_RAISE(compressed_for_non_zero_copy_,
AllocateResizableBuffer(kChunkSize, pool_));
Expand Down

0 comments on commit fb2bb77

Please sign in to comment.