From f7bbda2afb6118a92d35ad370e34cc6c21373acc Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 25 Feb 1999 18:36:15 -0500 Subject: [svn-r1106] Cleaned up a few compiler warnings, etc. --- src/H5Shyper.c | 10 +++++----- src/H5Spoint.c | 2 +- src/H5Sprivate.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/H5Shyper.c b/src/H5Shyper.c index 8657617..62ac6f0 100644 --- a/src/H5Shyper.c +++ b/src/H5Shyper.c @@ -1136,7 +1136,7 @@ H5S_hyper_fscat (H5F_t *f, const struct H5O_layout_t *layout, #ifdef QAK printf("%s: check 2.0\n", FUNC); #endif /* QAK */ - FUNC_LEAVE (num_written); + FUNC_LEAVE (num_written >0 ? SUCCEED : FAIL); } /* H5S_hyper_fscat() */ /*------------------------------------------------------------------------- @@ -1654,7 +1654,7 @@ H5S_hyper_mscat (const void *_tconv_buf, size_t elmt_size, H5MM_xfree(lo_bounds); H5MM_xfree(hi_bounds); - FUNC_LEAVE (SUCCEED); + FUNC_LEAVE (num_read>0 ? SUCCEED : FAIL); } /* H5S_hyper_mscat() */ /*-------------------------------------------------------------------------- @@ -1681,7 +1681,7 @@ H5S_hyper_mscat (const void *_tconv_buf, size_t elmt_size, static intn H5S_hyper_bsearch(hssize_t size, H5S_hyper_bound_t *barr, size_t count) { - intn lo, mid, hi; /* Indices for the search */ + size_t lo, mid, hi; /* Indices for the search */ intn ret_value=-1; /* Return value index */ FUNC_ENTER (H5S_hyper_bsearch, FAIL); @@ -1693,7 +1693,7 @@ H5S_hyper_bsearch(hssize_t size, H5S_hyper_bound_t *barr, size_t count) if(sizebarr[count-1].bound) - ret_value=count; + ret_value=(intn)count; else { /* must be in the middle somewhere, go get it */ lo=0; hi=count-1; @@ -1703,7 +1703,7 @@ H5S_hyper_bsearch(hssize_t size, H5S_hyper_bound_t *barr, size_t count) /* check for bounds only seperated by one element */ if((hi-lo)<=1) { - ret_value=hi; + ret_value=(intn)hi; break; } else { /* Divide and conquer! */ if(size>barr[mid].bound) diff --git a/src/H5Spoint.c b/src/H5Spoint.c index a68b9b5..581a1c3 100644 --- a/src/H5Spoint.c +++ b/src/H5Spoint.c @@ -465,7 +465,7 @@ H5S_point_fscat (H5F_t *f, const struct H5O_layout_t *layout, #endif } /* end while */ - FUNC_LEAVE (num_written); + FUNC_LEAVE (num_written>0 ? SUCCEED : FAIL); } /* H5S_point_fscat() */ /*------------------------------------------------------------------------- diff --git a/src/H5Sprivate.h b/src/H5Sprivate.h index f4d4959..cb0f6f4 100644 --- a/src/H5Sprivate.h +++ b/src/H5Sprivate.h @@ -78,7 +78,7 @@ typedef struct H5S_hyper_node_tag { hssize_t *end; /* Pointer to a corner of a hyperslab furthest from the origin */ struct { uintn cached; /* Flag to indicate that the block is cached (during I/O only) */ - uintn size; /* Size of cached block (in elements) */ + size_t size; /* Size of cached block (in elements) */ uintn left; /* Elements left to access in block */ hid_t block_id; /* Temporary buffer ID */ uint8_t *block; /* Pointer into temporary buffer for cache */ -- cgit v0.12