Changeset 19968 for trunk


Ignore:
Timestamp:
06/15/20 23:15:33 (4 years 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.