Skip to content

Commit c22d280

Browse files
committed
Fix one MSVC cast warning
1 parent 4306803 commit c22d280

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/src/arrow/python/arrow_to_pandas.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ inline void ConvertIntegerWithNulls(const PandasOptions& options,
503503
// Upcast to double, set NaN as appropriate
504504

505505
for (int i = 0; i < arr.length(); ++i) {
506-
*out_values++ = arr.IsNull(i) ? NAN : static_cast<double>(in_values[i]);
506+
*out_values++ =
507+
arr.IsNull(i) ? static_cast<OutType>(NAN) : static_cast<OutType>(in_values[i]);
507508
}
508509
}
509510
}

0 commit comments

Comments
 (0)