Skip to content

Commit

Permalink
Change comment and the order of operations to make it more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Nov 19, 2024
1 parent 06d207b commit f5ba504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RNTupleReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ std::unique_ptr<ROOTFrameData> RNTupleReader::readEntry(const std::string& categ

// m_readerEntries contains the accumulated entries for all the readers
// therefore, the first number that is lower or equal to the entry number
// is the index of the reader that contains the entry
// is at the index of the reader that contains the entry
auto upper = std::ranges::upper_bound(m_readerEntries[category], entNum);
auto localEntry = entNum - *(upper - 1);
auto readerIndex = upper - m_readerEntries[category].begin() - 1;
auto readerIndex = upper - 1 - m_readerEntries[category].begin();

ROOTFrameData::BufferMap buffers;
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 31, 0)
Expand Down

0 comments on commit f5ba504

Please sign in to comment.