From fbc60c2334326fc2f748226abe76190ecf39a26b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 2 Aug 2024 00:29:07 -0700 Subject: [PATCH] from_header minor width cleanup * src/list.c (from_header): Use UINTMAX_WIDTH rather than computing it by hand. --- src/list.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/list.c b/src/list.c index f7f22c98..c9717eb4 100644 --- a/src/list.c +++ b/src/list.c @@ -877,8 +877,7 @@ from_header (char const *where0, size_t digs, char const *type, others (assuming ASCII bytes of 8 bits or more). */ int signbit = *where & (1 << (LG_256 - 2)); uintmax_t topbits = (((uintmax_t) - signbit) - << (CHAR_BIT * sizeof (uintmax_t) - - LG_256 - (LG_256 - 2))); + << (UINTMAX_WIDTH - LG_256 - (LG_256 - 2))); value = (*where++ & ((1 << (LG_256 - 2)) - 1)) - signbit; for (;;) { -- 2.47.2