Skip to content

Commit

Permalink
Fix Windows min.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Jun 3, 2020
1 parent a286341 commit 1272f53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/hdf/io/Hdf5Handler.cpp
Expand Up @@ -89,7 +89,8 @@ uint8_t *DimInfo::getValue(pdal::point_count_t pointIndex) {
H5::DataSpace dspace = m_dset.getSpace();

chunkLowerBound = (pointIndex / m_chunkSize) * m_chunkSize;
chunkUpperBound = std::min(chunkLowerBound + m_chunkSize, m_numPoints);
chunkUpperBound = (std::min)(chunkLowerBound + m_chunkSize,
m_numPoints);

hsize_t selectionSize = chunkUpperBound - chunkLowerBound;

Expand Down

0 comments on commit 1272f53

Please sign in to comment.