summaryrefslogtreecommitdiffstats
path: root/src/H5Shyper.c
diff options
context:
space:
mode:
authorNeil Fortner <fortnern@gmail.com>2022-10-05 14:13:17 (GMT)
committerGitHub <noreply@github.com>2022-10-05 14:13:17 (GMT)
commit84ecd826876f9d1e3fdac5dcd8fc681466a1b1ea (patch)
tree4891afabf14ac9bfad553169f79e2811825cfb8f /src/H5Shyper.c
parent389e80dab6a586339044cb83f57216c5ed0fff3d (diff)
downloadhdf5-84ecd826876f9d1e3fdac5dcd8fc681466a1b1ea.zip
hdf5-84ecd826876f9d1e3fdac5dcd8fc681466a1b1ea.tar.gz
hdf5-84ecd826876f9d1e3fdac5dcd8fc681466a1b1ea.tar.bz2
Fixed an issue that could occur when combining hyperslab selections (#2122) (#2138) (#2142)
Diffstat (limited to 'src/H5Shyper.c')
-rw-r--r--src/H5Shyper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index 5b9027a..5652a60 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -8571,14 +8571,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 */