From 3941fd53834d09da84d50ea5241e7eafada50788 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 20 Jun 2005 13:56:03 -0500 Subject: [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 --- src/H5Shyper.c | 4 ++-- 1 file 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; uextent.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"); -- cgit v0.12