mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
reversed conditional
This commit is contained in:
parent
15c31b9eb6
commit
5cee82fd66
@ -536,7 +536,7 @@ px_get(ncio *const nciop, ncio_px *const pxp,
|
||||
off_t diff = (size_t)(offset - blkoffset);
|
||||
off_t blkextent = _RNDUP(diff + extent, pxp->blksz);
|
||||
|
||||
if(extent == 0 || extent >= X_INT_MAX || offset >= 0) /* sanity check */
|
||||
if(!(extent != 0 && extent < X_INT_MAX && offset >= 0)) /* sanity check */
|
||||
return NC_ENOTNC;
|
||||
|
||||
if(2 * pxp->blksz < blkextent)
|
||||
|
Loading…
Reference in New Issue
Block a user