diff --git a/cpp/src/arrow/compute/kernels/vector_selection_take_internal.cc b/cpp/src/arrow/compute/kernels/vector_selection_take_internal.cc index 4802d1d80c70a..d63e64edcf189 100644 --- a/cpp/src/arrow/compute/kernels/vector_selection_take_internal.cc +++ b/cpp/src/arrow/compute/kernels/vector_selection_take_internal.cc @@ -354,7 +354,7 @@ struct FixedWidthTakeImpl { static constexpr int kValueWidthInBits = ValueBitWidthConstant::value; static void Exec(KernelContext* ctx, const ArraySpan& values, const ArraySpan& indices, - ArrayData* out_arr, size_t factor) { + ArrayData* out_arr, int64_t factor) { #ifndef NDEBUG int64_t bit_width = util::FixedWidthInBits(*values.type); DCHECK(WithFactor::value || (kValueWidthInBits == bit_width && factor == 1)); @@ -394,7 +394,7 @@ struct FixedWidthTakeImpl { template