Skip to content

Commit

Permalink
Fix debug compile error in device_span to column_view conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwendt committed Feb 18, 2022
1 parent ec614ac commit 480b483
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/include/cudf/column/column_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,9 @@ class column_view : public detail::column_view_base {
: column_view(
cudf::data_type{cudf::type_to_id<T>()}, data.size(), data.data(), nullptr, 0, 0, {})
{
CUDF_EXPECTS(data.size() < std::numeric_limits<cudf::size_type>::max(),
"Data exceeds the maximum size of a column view.");
CUDF_EXPECTS(
data.size() < static_cast<std::size_t>(std::numeric_limits<cudf::size_type>::max()),
"Data exceeds the maximum size of a column view.");
}

/**
Expand Down

0 comments on commit 480b483

Please sign in to comment.