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>
This commit is contained in:
Andreas Gruenbacher 2024-11-26 23:33:55 +01:00 committed by Kent Overstreet
parent 0ede49212a
commit 0766f5599c

View File

@ -774,7 +774,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)