From 3b3d3e5cd48d0f54a62afdfbae535547ac56c474 Mon Sep 17 00:00:00 2001 From: Iker Pedrosa Date: Wed, 22 Feb 2023 10:54:28 +0100 Subject: [PATCH] lib: bit_ceil_wrapul(): stop recursion It should call bit_ceilul() instead of itself. Fixes: 0712b236c3bc ("Add bit manipulation functions") Signed-off-by: Alejandro Colomar Signed-off-by: Iker Pedrosa --- lib/bit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bit.h b/lib/bit.h index d5b94dae..7f09eb4d 100644 --- a/lib/bit.h +++ b/lib/bit.h @@ -39,7 +39,7 @@ bit_ceil_wrapul(unsigned long x) if (x == 0) return 0; - return bit_ceil_wrapul(x); + return bit_ceilul(x); } /* stdc_leading_zerosul(3) */