Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tree/dataframe/src/RNTupleDS.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class RRDFCardinalityField final : public RRDFCardinalityFieldBase {
{
if constexpr (std::is_same_v<T, bool> || std::is_same_v<T, std::uint64_t>)
return;
if (size > std::numeric_limits<T>::max()) {
if (size > static_cast<ROOT::NTupleSize_t>(std::numeric_limits<T>::max())) {
throw RException(R__FAIL(std::string("integer overflow in field ") + GetFieldName() +
". Please read the column with a larger-sized integral type."));
}
Expand Down
12 changes: 6 additions & 6 deletions tree/dataframe/test/dataframe_hist.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ TEST_P(RDFHist, InvalidNumberOfArguments)
// Cannot use EXPECT_THROW because of template arguments...
dfX.Hist</*BinContentType=*/double, double, double>({axis}, {"x", "x"});
FAIL() << "expected std::invalid_argument";
} catch (const std::invalid_argument &e) {
} catch (const std::invalid_argument &) {
// expected
}

Expand All @@ -274,7 +274,7 @@ TEST_P(RDFHist, InvalidNumberOfArguments)
// Cannot use EXPECT_THROW because of template arguments...
dfX.Hist<double, double>(hist, {"x", "x"});
FAIL() << "expected std::invalid_argument";
} catch (const std::invalid_argument &e) {
} catch (const std::invalid_argument &) {
// expected
}

Expand All @@ -283,7 +283,7 @@ TEST_P(RDFHist, InvalidNumberOfArguments)
// Cannot use EXPECT_THROW because of template arguments...
dfX.Hist<double, double>(engine, {"x", "x"});
FAIL() << "expected std::invalid_argument";
} catch (const std::invalid_argument &e) {
} catch (const std::invalid_argument &) {
// expected
}
}
Expand Down Expand Up @@ -417,7 +417,7 @@ TEST_P(RDFHist, WeightInvalidNumberOfArguments)
// Cannot use EXPECT_THROW because of template arguments...
dfXW.Hist</*BinContentType=*/double, double, double, double>({axis}, {"x", "x"}, "w");
FAIL() << "expected std::invalid_argument";
} catch (const std::invalid_argument &e) {
} catch (const std::invalid_argument &) {
// expected
}

Expand All @@ -426,7 +426,7 @@ TEST_P(RDFHist, WeightInvalidNumberOfArguments)
// Cannot use EXPECT_THROW because of template arguments...
dfXW.Hist<double, double, double>(hist, {"x", "x"}, "w");
FAIL() << "expected std::invalid_argument";
} catch (const std::invalid_argument &e) {
} catch (const std::invalid_argument &) {
// expected
}

Expand All @@ -435,7 +435,7 @@ TEST_P(RDFHist, WeightInvalidNumberOfArguments)
// Cannot use EXPECT_THROW because of template arguments...
dfXW.Hist<double, double, double>(engine, {"x", "x"}, "w");
FAIL() << "expected std::invalid_argument";
} catch (const std::invalid_argument &e) {
} catch (const std::invalid_argument &) {
// expected
}
}
Expand Down
8 changes: 6 additions & 2 deletions tree/ntuple/test/ntuple_soa.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ TEST(RNTuple, SoACheck)
} catch (const ROOT::RException &e) {
EXPECT_THAT(e.what(), ::testing::HasSubstr("SoA fields with inheritance are currently unsupported"));
}
EXPECT_NO_THROW(std::make_unique<RSoAField>("f", "SoABase"));
{
EXPECT_NO_THROW(auto f = std::make_unique<RSoAField>("f", "SoABase"));
}

try {
auto f = std::make_unique<RSoAField>("f", "SoASimpleBadArray");
Expand Down Expand Up @@ -104,7 +106,9 @@ TEST(RNTuple, SoACheck)
EXPECT_THAT(e.what(), ::testing::HasSubstr("SoA member type mismatch: fY (double [Double32_t] vs. float)"));
}

EXPECT_NO_THROW(std::make_unique<RSoAField>("f", "SoASimple"));
{
EXPECT_NO_THROW(auto f = std::make_unique<RSoAField>("f", "SoASimple"));
}

try {
auto f = std::make_unique<ROOT::RField<SoA>>("f");
Expand Down
Loading