From: Paul Eggert Date: Sun, 28 Feb 2021 21:42:49 +0000 (-0800) Subject: Pacify clang char conversion X-Git-Tag: v1.35~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc101747e8633da9ecd450dd2bb14a13448d89fe;p=thirdparty%2Ftar.git Pacify clang char conversion * src/create.c (to_chars): Pacify ‘clang’ about assigning 128 to ‘char’. --- diff --git a/src/create.c b/src/create.c index 6c99c74d..7ca742f5 100644 --- a/src/create.c +++ b/src/create.c @@ -308,7 +308,7 @@ to_chars (int negative, uintmax_t value, size_t valsize, if (((negative ? -1 - value : value) <= MAX_VAL_WITH_DIGITS (size - 1, LG_256))) { - where[0] = negative ? -1 : 1 << (LG_256 - 1); + where[0] = (char) (negative ? -1 : 1 << (LG_256 - 1)); to_base256 (negative, value, where + 1, size - 1); return true; }