File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 2121#include < ROOT/RNTupleDS.hxx>
2222#include < ROOT/RNTupleTypes.hxx>
2323#include < ROOT/RPageStorage.hxx>
24+ #include < ROOT/StringUtils.hxx>
2425#include < string_view>
2526
2627#include < TError.h>
@@ -517,6 +518,12 @@ ROOT::RFieldBase *ROOT::RDF::RNTupleDS::GetFieldWithTypeChecks(std::string_view
517518 return fProtoFields [index].get ();
518519 }
519520
521+ if (tid == typeid (std::size_t ) && ROOT::StartsWith (fProtoFields [index]->GetFieldName (), " R_rdf_sizeof_" )) {
522+ // The R_rdf_sizeof columns should always be accessible as std::sizeof, even of there normalized integer type
523+ // differs (e.g., "unsigned long" vs. "unsigned long long")
524+ return fProtoFields [index].get ();
525+ }
526+
520527 // The user explicitly requested a type
521528 const auto requestedType = ROOT::Internal::GetRenormalizedTypeName (ROOT::Internal::RDF::TypeID2TypeName (tid));
522529
You can’t perform that action at this time.
0 commit comments