Skip to content

Commit 1875356

Browse files
committed
[RNTuple] suppress windows warning in RNTupleDS.cxx
Windows issue C4804 warning with unsafe type of 'bool' operation
1 parent 8efccad commit 1875356

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tree/dataframe/src/RNTupleDS.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class RRDFCardinalityField final : public RRDFCardinalityFieldBase {
100100
{
101101
if constexpr (std::is_same_v<T, bool> || std::is_same_v<T, std::uint64_t>)
102102
return;
103-
if (size > std::numeric_limits<T>::max()) {
103+
if (size > static_cast<ROOT::NTupleSize_t>(std::numeric_limits<T>::max())) {
104104
throw RException(R__FAIL(std::string("integer overflow in field ") + GetFieldName() +
105105
". Please read the column with a larger-sized integral type."));
106106
}

0 commit comments

Comments
 (0)