NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/41385: "%zd" formatting is broken for printf()
>Number: 41385
>Category: lib
>Synopsis: "%zd" formatting is broken for printf()
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 08 15:30:00 +0000 2009
>Originator: Cherry G. Mathew
>Release: NetBSD 4.0.1 (XEN3_DOMU)
>Organization:
Bubblephone Ltd. http://www.bubblephone.com
>Environment:
>Description:
#include <stdio.h>
#include <sys/types.h>
int main(void) {
printf("%zd\n", (ssize_t) -1);
return 0;
}
prints:
4294967295
>How-To-Repeat:
Compile and run above program on 4.x
>Fix:
Home |
Main Index |
Thread Index |
Old Index