From a7028fb006be7d91626650f22748d22a1a74f6ee Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 9 Aug 2002 10:39:28 -0500 Subject: [svn-r5865] Purpose: Bug fix Description: hsize_t comparisons for selection boundaries (in H5Sget_select_bounds) were failing on Linux with --disable-hsizet. Solution: Changed comparisons to use use unsigned values instead of signed ones. Platforms tested: Linux 2.2.x (eirene) --- src/H5Shyper.c | 6 +++--- src/H5Spoint.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/H5Shyper.c b/src/H5Shyper.c index c286175..d69a073 100644 --- a/src/H5Shyper.c +++ b/src/H5Shyper.c @@ -2046,9 +2046,9 @@ H5S_hyper_bounds_helper (const H5S_hyper_span_info_t *spans, const hssize_t *off curr=spans->head; while(curr!=NULL) { /* Check if the current span extends the bounding box */ - if((curr->low+offset[rank])<(hssize_t)start[rank]) + if((hsize_t)(curr->low+offset[rank])low+offset[rank]; - if((curr->high+offset[rank])>(hssize_t)end[rank]) + if((hsize_t)(curr->high+offset[rank])>end[rank]) end[rank]=curr->high+offset[rank]; /* Recurse if this node has down spans */ @@ -2109,7 +2109,7 @@ H5S_hyper_bounds(const H5S_t *space, hsize_t *start, hsize_t *end) /* Set the start and end arrays up */ rank=space->extent.u.simple.rank; for(i=0; i