Date: Tue, 07 Feb 2017 05:23:08 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 191674] Implementation for "%tu" printf(3) qualifier incorrect on several 32-bit architectures (arm/x86/mips, i.e. when sizeof(ptrdiff_t) != sizeof(*intmax_t)) Message-ID: <bug-191674-8-WmocgT6rB8@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-191674-8@https.bugs.freebsd.org/bugzilla/> References: <bug-191674-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D191674 Ngie Cooper <ngie@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|printf("%tu", (intmax_t)-1) |Implementation for "%tu" |returns UINT64_MAX on i386, |printf(3) qualifier |not UINT32_MAX |incorrect on several 32-bit | |architectures | |(arm/x86/mips, i.e. when | |sizeof(ptrdiff_t) !=3D | |sizeof(*intmax_t)) --- Comment #1 from Ngie Cooper <ngie@FreeBSD.org> --- arm/i386/mips are affected by this because it casts the value up to [u]intmax_t, whereas the type itself can only represent [U]INT_MAX. I know where the general problem exists, but I don't feel comfortable right now ma= king the change. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191674-8-WmocgT6rB8>