diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-02-25 23:36:15 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-02-25 23:36:15 (GMT) |
commit | f7bbda2afb6118a92d35ad370e34cc6c21373acc (patch) | |
tree | 221c82c2f457b41ca9a949f58fff17134d6292f4 /src/H5Shyper.c | |
parent | 252e4dfc5f59cc1e37197e08bc7b26b3f9f5bd6e (diff) | |
download | hdf5-f7bbda2afb6118a92d35ad370e34cc6c21373acc.zip hdf5-f7bbda2afb6118a92d35ad370e34cc6c21373acc.tar.gz hdf5-f7bbda2afb6118a92d35ad370e34cc6c21373acc.tar.bz2 |
[svn-r1106] Cleaned up a few compiler warnings, etc.
Diffstat (limited to 'src/H5Shyper.c')
-rw-r--r-- | src/H5Shyper.c | 10 |
1 files changed, 5 insertions, 5 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(size<barr[0].bound) ret_value=0; else if(size>barr[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) |