gnulib/vasprintf: handle unsigned modifier for long long

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

https://bugzilla.gnome.org/show_bug.cgi?id=743936
This commit is contained in:
Aurélien Zanelli 2015-02-03 15:41:05 +01:00 committed by Colin Walters
parent c1b0f178ca
commit 5b74681f5b

View File

@ -123,6 +123,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;