diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-06-20 18:56:03 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-06-20 18:56:03 (GMT) |
commit | 3941fd53834d09da84d50ea5241e7eafada50788 (patch) | |
tree | ff6d938516cabeeb8aa91f12635e5dae4dbac13c | |
parent | 1f35ebc88b1db785c4eb63f89c5e8a660280358d (diff) | |
download | hdf5-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.c | 4 |
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"); |