From: Paul Eggert Date: Fri, 2 Aug 2024 07:29:07 +0000 (-0700) Subject: from_header minor width cleanup X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fbc60c2334326fc2f748226abe76190ecf39a26b;p=thirdparty%2Ftar.git from_header minor width cleanup * src/list.c (from_header): Use UINTMAX_WIDTH rather than computing it by hand. --- 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 (;;) {