summaryrefslogtreecommitdiffstats
path: root/src/H5TB.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5TB.c')
-rw-r--r--src/H5TB.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5TB.c b/src/H5TB.c
index 73892c5..e4a1488 100644
--- a/src/H5TB.c
+++ b/src/H5TB.c
@@ -1164,7 +1164,7 @@ H5TB_ffind(H5TB_NODE * root, void * key, unsigned fast_compare, H5TB_NODE ** pp)
if (ptr) {
while (0 != (cmp_addr = (*(haddr_t *)key - *(haddr_t *)ptr->key))) {
parent = ptr;
- side = (cmp < 0) ? LEFT : RIGHT;
+ side = (cmp_addr < 0) ? LEFT : RIGHT;
if (!HasChild(ptr, side))
break;
ptr = ptr->link[side];