Skip to content

Commit

Permalink
Fix indexing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Pals committed Feb 12, 2020
1 parent 78dbe8e commit 6cf5509
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/hdf/io/HdfReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ point_count_t HdfReader::read(PointViewPtr view, point_count_t count)
log()->get(LogLevel::Info) << "num points: " << m_hdf5Handler.getNumPoints() << std::endl;

for(uint64_t pi = 0; pi < m_hdf5Handler.getNumPoints(); pi++) {
for(int index = 0; index < m_infos.size(); ++index) {
auto& info = m_infos.at(0);
int bufIndex = pi % info.chunkSize;
for(uint64_t index = 0; index < m_infos.size(); ++index) {
auto& info = m_infos.at(index);
uint64_t bufIndex = pi % info.chunkSize;
if(bufIndex == 0) {
m_bufs.at(index) = m_hdf5Handler.getNextChunk(index);
}
Expand Down

0 comments on commit 6cf5509

Please sign in to comment.