incorrect print -1 using %hhd
Andrew Rybchenko
Andrew.Rybchenko at oktetlabs.ru
Tue Mar 27 14:28:29 UTC 2012
Hi all,
Is it known issue that uClibc 0.9.32 incorrectly prints -1 using
%hhd (and %hhi) specifier? The following program:
#include <stdio.h>
int
main(void)
{
printf("%hhd\n", -1);
return 0;
}
outputs:
255
If it matters, target is big-ending MIPS32.
Regards,
Andrew.
--
Andrew Rybchenko
OKTET Labs, St.-Petersburg, Russia Web: www.oktetlabs.ru
Office: +7 812 7832191 Fax: +7 812 7846591 Mobile: +7 921 7479683
More information about the uClibc
mailing list