diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-07-01 20:02:47 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-07-01 20:02:47 (GMT) |
commit | e5e786f589896da6f6414da51b56ccc119df8adb (patch) | |
tree | 69c21934ad23b0b71326a8fb8b40c384aca92f24 /src/H5TB.c | |
parent | eab58732d86e9219fa9f41f9ab2e30fae94e4a7d (diff) | |
download | hdf5-e5e786f589896da6f6414da51b56ccc119df8adb.zip hdf5-e5e786f589896da6f6414da51b56ccc119df8adb.tar.gz hdf5-e5e786f589896da6f6414da51b56ccc119df8adb.tar.bz2 |
[svn-r8782] Purpose:
Code cleanup
Description:
Clean up almost all warnings from Windows builds.
Platforms tested:
FreeBSD 4.10 (sleipnir) w/parallel
Too minor to require h5committest
Diffstat (limited to 'src/H5TB.c')
-rw-r--r-- | src/H5TB.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -215,12 +215,21 @@ H5TB_int_cmp(const void *k1, const void *k2, int UNUSED cmparg) static int H5TB_hsize_cmp(const void *k1, const void *k2, int UNUSED cmparg) { + int ret_value; + FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5TB_hsize_cmp); assert(k1); assert(k2); - FUNC_LEAVE_NOAPI(*(const hsize_t *)k1 - *(const hsize_t *)k2); + if(*(const hsize_t *)k1 < *(const hsize_t *)k2) + ret_value=-1; + else if(*(const hsize_t *)k1 > *(const hsize_t *)k2) + ret_value=1; + else + ret_value=0; + + FUNC_LEAVE_NOAPI(ret_value); } /* end H5TB_hsize_cmp() */ |