Skip to content

Commit

Permalink
fix stupid bug on lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Aug 17, 2024
1 parent 2fda2db commit 87c972b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/compute/kernels/row_encoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ void BooleanKeyEncoder::AddLengthNull(int32_t* length) {

Status BooleanKeyEncoder::Encode(const ExecValue& data, int64_t batch_length,
uint8_t** encoded_bytes) {
auto handle_next_valid_value = [encoded_bytes](bool value) mutable {
auto handle_next_valid_value = [&encoded_bytes](bool value) {
auto& encoded_ptr = *encoded_bytes++;
*encoded_ptr++ = kValidByte;
*encoded_ptr++ = value;
};
auto handle_next_null_value = [encoded_bytes]() mutable {
auto handle_next_null_value = [&encoded_bytes]() {
auto& encoded_ptr = *encoded_bytes++;
*encoded_ptr++ = kNullByte;
*encoded_ptr++ = 0;
Expand Down

0 comments on commit 87c972b

Please sign in to comment.