Skip to content

Commit 2abc6f4

Browse files
committed
DPL: use correct size for the buffer
1 parent 8d00eb5 commit 2abc6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Framework/AnalysisSupport/src/TTreePlugin.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ arrow::Result<arrow::RecordBatchGenerator> TTreeFileFormat::ScanBatchesAsync(
702702
if ((datasetField->type() == arrow::boolean())) {
703703
valueOp.kind = ReadOpKind::Booleans;
704704
valueOp.listSize = 1;
705-
valueOp.targetBuffer = treeFragment->GetPlaceholderForOp((valueOp.rootBranchEntries) / 8 + 1);
705+
valueOp.targetBuffer = treeFragment->GetPlaceholderForOp((valueOp.rootBranchEntries + 7) / 8);
706706
} else if (listType && datasetField->type()->field(0)->type() == arrow::boolean()) {
707707
valueOp.typeSize = physicalField->type()->field(0)->type()->byte_width();
708708
valueOp.listSize = listType->list_size();

0 commit comments

Comments
 (0)