summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-06-20 18:56:03 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-06-20 18:56:03 (GMT)
commit3941fd53834d09da84d50ea5241e7eafada50788 (patch)
treeff6d938516cabeeb8aa91f12635e5dae4dbac13c
parent1f35ebc88b1db785c4eb63f89c5e8a660280358d (diff)
downloadhdf5-3941fd53834d09da84d50ea5241e7eafada50788.zip
hdf5-3941fd53834d09da84d50ea5241e7eafada50788.tar.gz
hdf5-3941fd53834d09da84d50ea5241e7eafada50788.tar.bz2
[svn-r10959] 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index b9f22fb..563e118 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -4131,7 +4131,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];
@@ -4183,7 +4183,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");