From nobody Thu Sep 14 08:57:08 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RmWR86TWMz4t042; Thu, 14 Sep 2023 08:57:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RmWR85rf4z4Sbr; Thu, 14 Sep 2023 08:57:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694681828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=r2JqYbgPex14LxNytHP2t/eGYwFe8n5IzAlCO1RBi/0=; b=q4tMAyVZWuwGB+k+uzSCkKX7/b+UuT8eziF4JEjzKfMLCik5+SLxEHoJn2dT28F96QpV9h BX/NPjlwarbHlduPfX0XFXfGEJ4Z5KPgR1ifHu/7dMjHA8aLufaKpKNWupSoIPE27ps/Or 4zLOoe4toM+BtoFdMJYBroJpXSXZJY6PY15TklC+gHKg9WOsG1WXGXhOU47YBH+kv44dbk jN41z3U7ejOm2FfHzXXwWlV2I8up6ZsnOlp3FjRPa5XNnwgCPdYalUqZD2842yqdz85f0g 3WI8iMHx6Bcvvc+6Kn5cwyZ713NcxEWIqo3TflkEgbRV90KGel3aRhiah4UYkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694681828; a=rsa-sha256; cv=none; b=BIIMm41fDigApXzSNE1HG/jnmait7u6HZbyssmdJXOaXqt5sLVNapnwEo2qu3pw6GEr8iT 2cXOMWE7AUYHYVq+1oy0UBpChsAPeMRZKGukPASDyRF2pFhMqqBT2tZJ4Elgz/Mvpvso2G yyBOMJ+CQZMUsGzfj7a28POzgLXaAuEuW018TjXrrBddXv+4GbmIaSxAbqhotaqHnrNwXS jw/rEupjb4/PNrZXAutWfDKohuB0w88cYOw+m9WpSa0qFFnUcMVnpWchWKqIchJU0i/OcV 1oHamaZqCpvvlbZUPjiM2NkLztAHdJf0pWRHSgJohqBiPBT1z55snsbQlcAqcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694681828; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=r2JqYbgPex14LxNytHP2t/eGYwFe8n5IzAlCO1RBi/0=; b=la4Pm2Db4StFyT978q3Mqb7HjzRre3vfzYIAtdYpxm6Q2HJ8d8V7v9uawC361q6ws3iX8v w/gzgfY8liXU94Lq5bf4L+WM3Gq1M6IKNgGS20rgKFq0Itztj6C0dDL5Ha84+LgoiaVVyt pjRuik1k3JeHpNwAFEKdZS8HCBu4FKOlBZ53oawfQ6fO4XhU9bOsahgOpH4h2sS5RdL8RN YuduUCH0Q5ObmLNylU4HYWhL8qLI5kqLPGQVwkGyyWv/2ewLZVZyu7irp8evlw06b4oP5c YZqQfrQR9AwHrCbDfIWRrtqnrZjPPawLt7C5YSFF1Fi0mm6GOAPVYIc/e+7IWA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RmWR84vH0zqg8; Thu, 14 Sep 2023 08:57:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38E8v8iQ076660; Thu, 14 Sep 2023 08:57:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38E8v82N076657; Thu, 14 Sep 2023 08:57:08 GMT (envelope-from git) Date: Thu, 14 Sep 2023 08:57:08 GMT Message-Id: <202309140857.38E8v82N076657@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: c1335a776b0f - stable/14 - libc: Don't assume signed char. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: c1335a776b0ff33a715bdaa2be59412006cb4053 Auto-Submitted: auto-generated The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=c1335a776b0ff33a715bdaa2be59412006cb4053 commit c1335a776b0ff33a715bdaa2be59412006cb4053 Author: Dag-Erling Smørgrav AuthorDate: 2023-09-11 13:18:18 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-09-14 08:56:45 +0000 libc: Don't assume signed char. MFC after: 3 days Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D41814 (cherry picked from commit 88a9b6e1ed82b562f52bae26b3de257495cd1983) --- lib/libc/tests/stdio/snprintf_test.c | 4 ++-- lib/libc/tests/stdio/swprintf_test.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/tests/stdio/snprintf_test.c b/lib/libc/tests/stdio/snprintf_test.c index 323356b37a7d..29b908b65120 100644 --- a/lib/libc/tests/stdio/snprintf_test.c +++ b/lib/libc/tests/stdio/snprintf_test.c @@ -131,8 +131,8 @@ ATF_TC_WITHOUT_HEAD(snprintf_wN); ATF_TC_BODY(snprintf_wN, tc) { SNPRINTF_TEST("0", "%w8d", (int8_t)0); - SNPRINTF_TEST("-128", "%w8d", (int8_t)CHAR_MIN); - SNPRINTF_TEST("127", "%w8d", (int8_t)CHAR_MAX); + SNPRINTF_TEST("-128", "%w8d", (int8_t)SCHAR_MIN); + SNPRINTF_TEST("127", "%w8d", (int8_t)SCHAR_MAX); SNPRINTF_TEST("0", "%w8u", (uint8_t)0); SNPRINTF_TEST("255", "%w8u", (uint8_t)UCHAR_MAX); diff --git a/lib/libc/tests/stdio/swprintf_test.c b/lib/libc/tests/stdio/swprintf_test.c index f5dde349412b..f00ecc7f1c1d 100644 --- a/lib/libc/tests/stdio/swprintf_test.c +++ b/lib/libc/tests/stdio/swprintf_test.c @@ -132,8 +132,8 @@ ATF_TC_WITHOUT_HEAD(swprintf_wN); ATF_TC_BODY(swprintf_wN, tc) { SWPRINTF_TEST("0", "%w8d", (int8_t)0); - SWPRINTF_TEST("-128", "%w8d", (int8_t)CHAR_MIN); - SWPRINTF_TEST("127", "%w8d", (int8_t)CHAR_MAX); + SWPRINTF_TEST("-128", "%w8d", (int8_t)SCHAR_MIN); + SWPRINTF_TEST("127", "%w8d", (int8_t)SCHAR_MAX); SWPRINTF_TEST("0", "%w8u", (uint8_t)0); SWPRINTF_TEST("255", "%w8u", (uint8_t)UCHAR_MAX);