printf: handle unsigned modifier for long long

Otherwise, an unsigned integer will be displayed as a signed one if we
use internal print, ie HAVE_LONG_LONG_FORMAT is not defined.

https://bugzilla.gnome.org/show_bug.cgi?id=746096
This commit is contained in:
Aurélien Zanelli 2015-02-03 16:12:32 +01:00 committed by Tim-Philipp Müller
parent ad161f7df5
commit 3da3e8df3e

View file

@ -121,6 +121,11 @@ print_long_long (char *buf,
digits = upper;
negative = FALSE;
break;
case 'u':
base = 10;
digits = lower;
negative = FALSE;
break;
default:
base = 10;
digits = lower;