From dc101747e8633da9ecd450dd2bb14a13448d89fe Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 28 Feb 2021 13:42:49 -0800 Subject: [PATCH] Pacify clang char conversion MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * src/create.c (to_chars): Pacify ‘clang’ about assigning 128 to ‘char’. --- src/create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2