diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2024-11-26 23:33:55 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-07 16:16:26 -0500 |
commit | 451c9d76fbc537c817e49a5566d1c13b66b689a5 (patch) | |
tree | 1b2e7f0deb5ceaaeb48023521d399a73805e0e66 | |
parent | caa461899ef43c441a51cd0a8e5ea073810bf992 (diff) |
bcachefs: eytzinger self tests: fix cmp_u16 typo
Fix an obvious typo in cmp_u16().
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/util.c b/fs/bcachefs/util.c index e2bcfb38bbae..84f139154701 100644 --- a/fs/bcachefs/util.c +++ b/fs/bcachefs/util.c @@ -768,7 +768,7 @@ static inline int cmp_u16(const void *_l, const void *_r) { const u16 *l = _l, *r = _r; - return (*l > *r) - (*r - *l); + return (*l > *r) - (*r > *l); } static void eytzinger0_find_test_val(u16 *test_array, unsigned nr, u16 search) |