diff options
author | Neil Fortner <fortnern@gmail.com> | 2022-10-04 16:20:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 16:20:10 (GMT) |
commit | 1a20a9f342227a7b822f45abe893af86f3fe2d19 (patch) | |
tree | 5c20ae45c12b1c2a963878edd305e4a234bf794c /src | |
parent | 50c1a9e483a53802cbf2e2d28f0554fb1e345b88 (diff) | |
download | hdf5-1a20a9f342227a7b822f45abe893af86f3fe2d19.zip hdf5-1a20a9f342227a7b822f45abe893af86f3fe2d19.tar.gz hdf5-1a20a9f342227a7b822f45abe893af86f3fe2d19.tar.bz2 |
Fixed an issue that could occur when combining hyperslab selections (#2122) (#2138)
Diffstat (limited to 'src')
-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 cf22f25..1341345 100644 --- a/src/H5Shyper.c +++ b/src/H5Shyper.c @@ -8791,14 +8791,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 */ |