From 9af55d30cf9011f8117ca57801fd66fc1b34bb5c Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Tue, 4 Mar 2025 10:37:30 +0100 Subject: [PATCH] DPL: use correct size for the buffer --- Framework/AnalysisSupport/src/TTreePlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/AnalysisSupport/src/TTreePlugin.cxx b/Framework/AnalysisSupport/src/TTreePlugin.cxx index f74fcda38d1f0..4481c06a8c6d9 100644 --- a/Framework/AnalysisSupport/src/TTreePlugin.cxx +++ b/Framework/AnalysisSupport/src/TTreePlugin.cxx @@ -702,7 +702,7 @@ arrow::Result TTreeFileFormat::ScanBatchesAsync( if ((datasetField->type() == arrow::boolean())) { valueOp.kind = ReadOpKind::Booleans; valueOp.listSize = 1; - valueOp.targetBuffer = treeFragment->GetPlaceholderForOp((valueOp.rootBranchEntries) / 8 + 1); + valueOp.targetBuffer = treeFragment->GetPlaceholderForOp((valueOp.rootBranchEntries + 7) / 8); } else if (listType && datasetField->type()->field(0)->type() == arrow::boolean()) { valueOp.typeSize = physicalField->type()->field(0)->type()->byte_width(); valueOp.listSize = listType->list_size();