Skip to content

Commit

Permalink
fix on to work with gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
kerim371 committed Apr 29, 2023
1 parent 9d280b1 commit 68d5462
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/h5geo/h5core_segy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1150,9 +1150,10 @@ bool readSEGYSTACK(
vp.nX = nxl;
vp.nY = nil;
vp.nZ = nSamp;
vp.xChunkSize = std::min(vp.xChunkSize, nxl);
vp.yChunkSize = std::min(vp.yChunkSize, nil);
vp.zChunkSize = std::min(vp.zChunkSize, nSamp);
// explicitly specify template (with gcc may fail without it)
vp.xChunkSize = std::min<size_t>(vp.xChunkSize, nxl);
vp.yChunkSize = std::min<size_t>(vp.yChunkSize, nil);
vp.zChunkSize = std::min<size_t>(vp.zChunkSize, nSamp);
if (!vol->recreateVolD(vp.nX, vp.nY, vp.nZ,
vp.xChunkSize, vp.yChunkSize, vp.zChunkSize,
vp.compression_level))
Expand Down

0 comments on commit 68d5462

Please sign in to comment.