diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-06-20 18:56:13 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-06-20 18:56:13 (GMT) |
commit | d964939b3963e0231d3e1f06fd13fb9b835cb15b (patch) | |
tree | 402a5627d67bc6405011a49664ba19d0739e1b16 | |
parent | d066938224ad12a3a5dc8fe482f5d813b63027e5 (diff) | |
download | hdf5-d964939b3963e0231d3e1f06fd13fb9b835cb15b.zip hdf5-d964939b3963e0231d3e1f06fd13fb9b835cb15b.tar.gz hdf5-d964939b3963e0231d3e1f06fd13fb9b835cb15b.tar.bz2 |
[svn-r10960] Purpose:
Bug fix
Description:
Don't perform hyperslab operations on non-hyperslab selections.
Platforms tested:
FreeBSD 4.11 (sleipnir)
Too minor to require h5committest
-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 f3b5d22..e881f53 100644 --- a/src/H5Shyper.c +++ b/src/H5Shyper.c @@ -4127,7 +4127,7 @@ H5S_hyper_normalize_offset(H5S_t *space, hssize_t *old_offset) /* Check for 'all' selection, instead of a hyperslab selection */ /* (Technically, this check shouldn't be in the "hyperslab" routines...) */ - if(H5S_GET_SELECT_TYPE(space)!=H5S_SEL_ALL) { + if(H5S_GET_SELECT_TYPE(space)==H5S_SEL_HYPERSLABS) { /* Copy & invert the selection offset */ for(u=0; u<space->extent.rank; u++) { old_offset[u] = space->select.offset[u]; @@ -4179,7 +4179,7 @@ H5S_hyper_denormalize_offset(H5S_t *space, const hssize_t *old_offset) /* Check for 'all' selection, instead of a hyperslab selection */ /* (Technically, this check shouldn't be in the "hyperslab" routines...) */ - if(H5S_GET_SELECT_TYPE(space)!=H5S_SEL_ALL) { + if(H5S_GET_SELECT_TYPE(space)==H5S_SEL_HYPERSLABS) { /* Call the existing 'adjust' routine */ if(H5S_hyper_adjust_s(space, old_offset)<0) HGOTO_ERROR(H5E_DATASPACE, H5E_BADSELECT, FAIL, "can't perform hyperslab normalization"); |