From: Iker Pedrosa Date: Wed, 22 Feb 2023 09:54:28 +0000 (+0100) Subject: lib: bit_ceil_wrapul(): stop recursion X-Git-Tag: 4.14.0-rc1~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b3d3e5cd48d0f54a62afdfbae535547ac56c474;p=thirdparty%2Fshadow.git 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 --- diff --git a/lib/bit.h b/lib/bit.h index d5b94dae6..7f09eb4d5 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) */