diff --git a/src/main/cpp/src/row_conversion.cu b/src/main/cpp/src/row_conversion.cu index 7529c58fd2..efe0a4bf28 100644 --- a/src/main/cpp/src/row_conversion.cu +++ b/src/main/cpp/src/row_conversion.cu @@ -2467,7 +2467,7 @@ std::unique_ptr convert_from_rows(lists_column_view const& input, std::vector string_data_col_ptrs; for (auto& col_string_lengths : string_lengths) { device_uvector output_string_offsets(num_rows + 1, stream, mr); - auto tmp = cuda::proclaim_return_type( + auto tmp = cuda::proclaim_return_type( [num_rows, col_string_lengths] __device__(auto const& i) { return i < num_rows ? col_string_lengths[i] : 0; });