From b2f8c5666d7409f30d26d4a97167ef3ee585cf73 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Wed, 27 Sep 2023 16:27:08 -0400 Subject: [PATCH] Use U, not UL, for 32-bit platforms size_t is an unsigned int on 32-bit platforms, not an unsigned long. --- lib/util/roundup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/roundup.c b/lib/util/roundup.c index b19d9a4db..73cf4af76 100644 --- a/lib/util/roundup.c +++ b/lib/util/roundup.c @@ -64,7 +64,7 @@ sudo_pow2_roundup_v2(size_t len) #if defined(__LP64__) && defined(HAVE___BUILTIN_CLZL) return 1UL << (64 - __builtin_clzl(len - 1)); #elif !defined(__LP64__) && defined(HAVE___BUILTIN_CLZ) - return 1UL << (32 - __builtin_clz(len - 1)); + return 1U << (32 - __builtin_clz(len - 1)); #else len--; len |= len >> 1;