diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2024-11-26 23:33:55 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-02-25 20:52:49 -0500 |
commit | bb33d0f8f16b88825ff0cd9ebdc279d8d97bb8ca (patch) | |
tree | 052e7592044237af74b562ae674b627384046917 | |
parent | 29eec3d142b42bb31fc19987f99416f405c35307 (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) |