summaryrefslogtreecommitdiffstats
path: root/src/H5Shyper.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2015-04-22 16:01:33 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2015-04-22 16:01:33 (GMT)
commit0308a17597f802e3a9a2eb46f4884792cc895bbd (patch)
tree2f3e208f5a7d4092ff3e3cd9f55d93bc66d8bd5b /src/H5Shyper.c
parent7b4a24f2f8682814d0f36f77e7fe951b10be8f72 (diff)
downloadhdf5-0308a17597f802e3a9a2eb46f4884792cc895bbd.zip
hdf5-0308a17597f802e3a9a2eb46f4884792cc895bbd.tar.gz
hdf5-0308a17597f802e3a9a2eb46f4884792cc895bbd.tar.bz2
[svn-r26883] Fix bug in H5S__hyper_project_intersection that could cause an incorrect result.
Tested: ummon
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 6c553d3..4a10ffc 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -9384,7 +9384,7 @@ H5S__hyper_project_intersection(const H5S_t *src_space, const H5S_t *dst_space,
* finished being built) */
for(i = proj_rank - 1; ((i > 0)
&& (((proj_off / proj_down_dims[i - 1])
- % proj_space->extent.size[i])
+ % proj_space->extent.size[i - 1])
!= curr_span_dim[i - 1])); i--) {
if(curr_span_tree[i]) {
HDassert(prev_span[i]);
@@ -9404,7 +9404,7 @@ H5S__hyper_project_intersection(const H5S_t *src_space, const H5S_t *dst_space,
} /* end if */
/* Update curr_span_dim */
- curr_span_dim[i - 1] = (proj_off / proj_down_dims[i - 1]) % proj_space->extent.size[i];
+ curr_span_dim[i - 1] = (proj_off / proj_down_dims[i - 1]) % proj_space->extent.size[i - 1];
} /* end for */
/* Compute bounds for new span in lowest dimension */