diff --git a/cpp/include/cudf/column/column_view.hpp b/cpp/include/cudf/column/column_view.hpp index ba15e37f9ea..10334a40cf9 100644 --- a/cpp/include/cudf/column/column_view.hpp +++ b/cpp/include/cudf/column/column_view.hpp @@ -393,8 +393,9 @@ class column_view : public detail::column_view_base { : column_view( cudf::data_type{cudf::type_to_id()}, data.size(), data.data(), nullptr, 0, 0, {}) { - CUDF_EXPECTS(data.size() < std::numeric_limits::max(), - "Data exceeds the maximum size of a column view."); + CUDF_EXPECTS( + data.size() < static_cast(std::numeric_limits::max()), + "Data exceeds the maximum size of a column view."); } /**