summaryrefslogtreecommitdiffstats
path: root/src/H5Shyper.c
diff options
context:
space:
mode:
authorNeil Fortner <fortnern@gmail.com>2022-09-27 03:51:52 (GMT)
committerGitHub <noreply@github.com>2022-09-27 03:51:52 (GMT)
commit4184bac2ece1726056e5a0f3c91d38c5a5ef2c38 (patch)
treebb16255eb54f928f217569a676110fe5ddfb3ed4 /src/H5Shyper.c
parent1c26386c38115d605a79d8c57a5df0dd181b93f3 (diff)
downloadhdf5-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.c4
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 */