Skip to content

Commit

Permalink
Update again BinaryBuilder::Resize(int64_t capacity) in builder.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
xuepanchen authored Jan 15, 2018
1 parent d021c54 commit 5b73c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ Status BinaryBuilder::Resize(int64_t capacity) {
DCHECK_LT(capacity, std::numeric_limits<int32_t>::max());
// one more then requested for offsets
RETURN_NOT_OK(offsets_builder_.Resize((capacity + 1) * sizeof(int64_t)));
RETURN_NOT_OK(value_data_builder_.Resize(capacity));
RETURN_NOT_OK(value_data_builder_.Resize(capacity * sizeof(int64_t)));
return ArrayBuilder::Resize(capacity);
}

Expand Down

0 comments on commit 5b73c1c

Please sign in to comment.