diff options
author | Neil Fortner <fortnern@gmail.com> | 2022-09-27 03:51:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 03:51:52 (GMT) |
commit | 4184bac2ece1726056e5a0f3c91d38c5a5ef2c38 (patch) | |
tree | bb16255eb54f928f217569a676110fe5ddfb3ed4 /src/H5Shyper.c | |
parent | 1c26386c38115d605a79d8c57a5df0dd181b93f3 (diff) | |
download | hdf5-4184bac2ece1726056e5a0f3c91d38c5a5ef2c38.zip hdf5-4184bac2ece1726056e5a0f3c91d38c5a5ef2c38.tar.gz hdf5-4184bac2ece1726056e5a0f3c91d38c5a5ef2c38.tar.bz2 |
Fixed an issue that could occur when combining hyperslab selections (#2122)
Diffstat (limited to 'src/H5Shyper.c')
-rw-r--r-- | src/H5Shyper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c index 0e66890..f6bc936 100644 --- a/src/H5Shyper.c +++ b/src/H5Shyper.c @@ -8796,14 +8796,14 @@ H5S__hyper_update_diminfo(H5S_t *space, H5S_seloper_t op, const H5S_hyper_dim_t } /* end if */ else { /* Check if block values are the same */ - if (tmp_diminfo[curr_dim].block != new_hyper_diminfo[curr_dim].block) { + if (tmp_diminfo[curr_dim].block != high_block) { space->select.sel_info.hslab->diminfo_valid = H5S_DIMINFO_VALID_NO; break; } /* end if */ /* Check phase of strides */ if ((tmp_diminfo[curr_dim].start % tmp_diminfo[curr_dim].stride) != - (new_hyper_diminfo[curr_dim].start % tmp_diminfo[curr_dim].stride)) { + (high_start % tmp_diminfo[curr_dim].stride)) { space->select.sel_info.hslab->diminfo_valid = H5S_DIMINFO_VALID_NO; break; } /* end if */ |