Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Jun 4, 2024
1 parent 6e5c5b3 commit d4c4571
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);
memcpy(result->mutable_data(), &prefixed_length_little_endian, sizeof(int64_t));
util::SafeStore(result->mutable_data(), prefixed_length);

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

Expand Down

0 comments on commit d4c4571

Please sign in to comment.