From 088102feeb353c7b5404892e9ed115e56be5858f Mon Sep 17 00:00:00 2001 From: mwish Date: Mon, 10 Jun 2024 16:28:44 +0800 Subject: [PATCH] fix a naive bug --- cpp/src/arrow/ipc/writer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/ipc/writer.cc b/cpp/src/arrow/ipc/writer.cc index e2ca7092fbe2f..549fb34a2e880 100644 --- a/cpp/src/arrow/ipc/writer.cc +++ b/cpp/src/arrow/ipc/writer.cc @@ -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));