Skip to content

Commit 10d8ced

Browse files
committed
stability fix for fetching large entries
1 parent a16a629 commit 10d8ced

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ROOTIOUtilities.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ bool ROOTIOUtilities::fetchData(int event)
234234
else {
235235
gotten = mTTree->GetEntry(mTTreeCounter++);
236236
}
237-
return (gotten > 0);
237+
// using !=0 since ROOT sometimes gives back negative byte counts
238+
// due to overflow
239+
return (gotten != 0);
238240
}
239241
bool ROOTIOUtilities::flushToTTree()
240242
{

0 commit comments

Comments
 (0)