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();