Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: printf("%zi\n", (ssize_t)-1) failure

In article <b2d8e3ba290c1b5f86278071477564d4@localhost>,
Roy Marples  <> wrote:
>NetBSD-4, -5 and -current fail with printf("%zi\n", (ssize_t)-1);
>On i386 the result is 4294967295.
>On amd64 -5 it works and prints -1.
>Test case
>#include <sys/types.h>
>#include <stdio.h>
>int main(int argc, char **argv)
>        return printf("%zi\n", (ssize_t)-1);
>Proposed patch, tested on -current i386

Looks good to me.


Home | Main Index | Thread Index | Old Index