summaryrefslogtreecommitdiff
path: root/libbcachefs/bset.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/bset.h')
-rw-r--r--libbcachefs/bset.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/bset.h b/libbcachefs/bset.h
index 8bc2fdfd..74b962a0 100644
--- a/libbcachefs/bset.h
+++ b/libbcachefs/bset.h
@@ -449,7 +449,7 @@ static inline int bkey_iter_cmp(struct btree *b,
{
return bkey_cmp_packed(b, l, r)
?: (int) bkey_deleted(r) - (int) bkey_deleted(l)
- ?: (l > r) - (l < r);
+ ?: cmp_int(l, r);
}
static inline int btree_node_iter_cmp(struct btree *b,