Changeset 19968


Ignore:
Timestamp:
Jun 15, 2020, 11:15:33 PM (2 months ago)
Author:
tbretz
Message:
Fixed a bug that broke the meaning of 'max'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/root2sql.cc

    r19815 r19968  
    722722    size_t count = 0;
    723723
    724     const size_t num = max>0 && (max-first)<T->GetEntriesFast() ? (max-first) : T->GetEntriesFast();
     724    const size_t num = max>0 && first+max<T->GetEntriesFast() ? (first+max) : T->GetEntriesFast();
    725725    for (size_t j=first; j<num; j++)
    726726    {
Note: See TracChangeset for help on using the changeset viewer.