diff --git a/cpp/src/io/orc/aggregate_orc_metadata.cpp b/cpp/src/io/orc/aggregate_orc_metadata.cpp index 82161233a92..3d43042842f 100644 --- a/cpp/src/io/orc/aggregate_orc_metadata.cpp +++ b/cpp/src/io/orc/aggregate_orc_metadata.cpp @@ -171,8 +171,9 @@ std::vector aggregate_orc_metadata::select_stri // Coalesce stripe info at the source file later since that makes downstream processing much // easier in impl::read - for (const size_t& stripe_idx : user_specified_stripes[src_file_idx]) { - CUDF_EXPECTS(stripe_idx < per_file_metadata[src_file_idx].ff.stripes.size(), + for (const auto& stripe_idx : user_specified_stripes[src_file_idx]) { + CUDF_EXPECTS(stripe_idx < static_cast( + per_file_metadata[src_file_idx].ff.stripes.size()), "Invalid stripe index"); stripe_infos.push_back( std::make_pair(&per_file_metadata[src_file_idx].ff.stripes[stripe_idx], nullptr));