Skip to content

Commit

Permalink
fix a naive bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Jun 10, 2024
1 parent d4c4571 commit 088102f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/ipc/writer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class RecordBatchSerializer {
result->Resize(actual_length + sizeof(int64_t), /* shrink_to_fit= */ true));
}
int64_t prefixed_length_little_endian = bit_util::ToLittleEndian(prefixed_length);
util::SafeStore(result->mutable_data(), prefixed_length);
util::SafeStore(result->mutable_data(), prefixed_length_little_endian);

*out = SliceBuffer(std::move(result), /*offset=*/0, actual_length + sizeof(int64_t));

Expand Down

0 comments on commit 088102f

Please sign in to comment.