[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))
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Feb 7 05:39:19 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191674
--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:
Author: ngie
Date: Tue Feb 7 05:39:01 UTC 2017
New revision: 313379
URL: https://svnweb.freebsd.org/changeset/base/313379
Log:
Expect :int_within_limits to fail when ptrdiff_t/*intmax_t differ in base
type
The %t{d,u} (ptrdiff_t) tests fail for the following reasons:
- ptrdiff_t is by definition int32_t on !LP64 architectures and int64_t on
LP64 architectures.
- intmax_t is by definition fixed to int64_t on all architectures.
- Some of the code in lib/libc/stdio/... is promoting ptrdiff_t to *intmax_t
when parsing/representing the value.
PR: 191674
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Changes:
head/lib/libc/tests/stdio/printbasic_test.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list