From nobody Mon Sep 11 13:18:34 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 4RknNC1xmmz4slWN; Mon, 11 Sep 2023 13:18:35 +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 4RknNC12C8z4L1s; Mon, 11 Sep 2023 13:18:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694438315; 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=gir5HoOnlQgeskxYphksbp4tRGIIuGJ0gByGpEykYo0=; b=kSenShAB5KAxz7+BlSFvVMXroE6J15nUPDVMvXNBc876g1lwQxbQcp2D+ywcwBed274PHn Wf5I726oF7sKDwTE95ualHZO/VPHu5stIJbx1vmWYiZTf7kCdo305Tnun2OOmquDUPLURR CAEb9MbrRS/yH+c5eQ2jaY7/9tW5uNrDosSc/WglJ73pf/DJNiyyK8tB574dr8nQ3acMZL yNes0pUiLdSLHz0jGmeNL5gQ073UGHEh4PCe/FlvkULiEbTExIOd9jC2THyqwraUNC7+kf +n3CgX4mZsd5jxReiJQMhkh39Hi+xA2dPx2lYsykuRI3CZtjig7oZ6SbL20thw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694438315; a=rsa-sha256; cv=none; b=p+q51ko2XCg/zQaDpS3b8tpJUFRBaX6T/UoNURItkCSTW6Vhn/PpIsf3i59uAQBg0S0ZMn uxDllLrt12cSXeBitB/iu59sBNL4G4uYqzsC2A1cAcS0Qc8fIz+cprzYaOBaY5a2GsoejZ 0idK6bDlPaqZ2D2lHVokIX6kxCASsxIJofcbtd+IfTpIAwT9oLXwFkUnC7wyqwNproL/pA wF2cGWL6fk5Krs2U8GjPqO5XSEQ6IEYPJsYWT8taq/J8yrHiks16o4UC6o00gwBRvh8aoo h+AoJ7B9JADzMv/wbiVMaC/MArxYPD/yXR6D3Nrb1xigDI8xkoDTmAO7/72ywg== 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=1694438315; 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=gir5HoOnlQgeskxYphksbp4tRGIIuGJ0gByGpEykYo0=; b=f0sC3GTK0/zgBWQX8KWlkAsWz5EMDCJH9vW98F4YN5udDmek+l+6vNqzaV6QWcJukOqNRb RRaj0xbv6DYH3tLOtcn5FS/klUFBZKKCn3q60A6Hm0ajXCJDeW1gne8H+jc/zeeM8D3BIa Z3fWl+EtbIwRk8a6y+5me0Nz1xODaoaELVaC5fwm6UekcWmiGjKZ+z3BfWkUzaFgCak2ue Xuk66h+A6OGresdPebcpnNhuLwsBbMxEFrOSc6dEkAM5I2WNmqwLnS9gs/elSPC6vrRebl sxop0H50GJsZ5pj1ew4Cq0w1xVeW+PyAwBruzXwMeUFONii7dlDNFuKJ24At+A== 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 4RknNC05VLzqv8; Mon, 11 Sep 2023 13:18:35 +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 38BDIYwe024733; Mon, 11 Sep 2023 13:18:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38BDIYp0024730; Mon, 11 Sep 2023 13:18:34 GMT (envelope-from git) Date: Mon, 11 Sep 2023 13:18:34 GMT Message-Id: <202309111318.38BDIYp0024730@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 88a9b6e1ed82 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 88a9b6e1ed82b562f52bae26b3de257495cd1983 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=88a9b6e1ed82b562f52bae26b3de257495cd1983 commit 88a9b6e1ed82b562f52bae26b3de257495cd1983 Author: Dag-Erling Smørgrav AuthorDate: 2023-09-11 13:18:18 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-09-11 13:18:25 +0000 libc: Don't assume signed char. MFC after: 3 days Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D41814 --- 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);