From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 26853385843B; Mon, 11 Mar 2024 14:44:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26853385843B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710168255; bh=nNSQ1yCy1IzvN4QfdQp1e5JEpHYuZkBg2rHx76bmMOM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MJZW93zdfzJrSf2LJc0XX16f1VE0CbRQNvgZMTuNFSqPC/4VHFwh6Bo3TuCVuQdve Nk9AM+yZ+spQECkMhX+9jJff/jAh+dSgv46lEfTz71aW61eUzGw3EkaYJa8dH7KhZI oN5Rt2m0ofSaKGm2/dpC83P5dCAg/KhW4t6KGpec= From: "luigighiron at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/31470] inttypes.h provides incorrect macro definitions Date: Mon, 11 Mar 2024 14:44:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: luigighiron at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31470 --- Comment #3 from Halalaluyafail3 --- (In reply to Andreas Schwab from comment #2) > I don't think PRIu8 is a valid format for u+1, since u+1 is of type int, = not > uint8_t, and u+1 is not in range for uint8_t. PRIu8 is supposed to work with the promoted type of uint8_t (always int) th= en convert to uint8_t. So it should output 0, similar to how using unsigned ch= ar and "hhu" would work. See the quote from C23 that I provided in the bug rep= ort. --=20 You are receiving this mail because: You are on the CC list for the bug.=