pitrou commented on code in PR #47998:
URL: https://github.com/apache/arrow/pull/47998#discussion_r2477136434


##########
cpp/src/arrow/util/rle_encoding_internal.h:
##########
@@ -506,40 +506,38 @@ class RleBitPackedEncoder {
       : bit_width_(bit_width), bit_writer_(buffer, buffer_len) {
     ARROW_DCHECK_GE(bit_width_, 0);
     ARROW_DCHECK_LE(bit_width_, 64);
-    max_run_byte_size_ = MinBufferSize(bit_width);
+    max_run_byte_size_ = static_cast<int>(MinBufferSize(bit_width));

Review Comment:
   I think we also want to update `CheckBufferFull` to use 64-bit arithmetic.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to