summaryrefslogtreecommitdiffstats
path: root/src/H5TB.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-07-01 20:03:10 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-07-01 20:03:10 (GMT)
commit5ccfe5a72453299c4995b3faaaab1e35c975fde3 (patch)
tree6b301625e9865965f19572e91a0dc0b029a9cadd /src/H5TB.c
parent700a3f0b3cc3d053d3245d5f16066817eee99ab5 (diff)
downloadhdf5-5ccfe5a72453299c4995b3faaaab1e35c975fde3.zip
hdf5-5ccfe5a72453299c4995b3faaaab1e35c975fde3.tar.gz
hdf5-5ccfe5a72453299c4995b3faaaab1e35c975fde3.tar.bz2
[svn-r8783] 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.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/H5TB.c b/src/H5TB.c
index b74f9df..92caf0a 100644
--- a/src/H5TB.c
+++ b/src/H5TB.c
@@ -204,12 +204,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() */