jonkeane commented on code in PR #46124:
URL: https://github.com/apache/arrow/pull/46124#discussion_r2048857300


##########
cpp/src/arrow/compute/light_array_internal.cc:
##########
@@ -615,7 +615,9 @@ Status ExecBatchBuilder::AppendSelected(const 
std::shared_ptr<ArrayData>& source
                 target->mutable_data(2) +
                 offsets[num_rows_before + num_rows_to_process + i]);
             const uint64_t* src = reinterpret_cast<const uint64_t*>(ptr);
-            memcpy(dst, src, num_bytes);
+            uint8_t* dst_bytes = reinterpret_cast<uint8_t*>(dst);
+            const uint8_t* src_bytes = reinterpret_cast<const uint8_t*>(src);
+            memcpy(dst_bytes, src_bytes, num_bytes);

Review Comment:
   Thanks! Yup, this works



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to