From 5b74681f5b4dd3f5fc93b82a4f706c2337d76a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Zanelli?= Date: Tue, 3 Feb 2015 15:41:05 +0100 Subject: [PATCH] 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 --- glib/gnulib/vasnprintf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/glib/gnulib/vasnprintf.c b/glib/gnulib/vasnprintf.c index ee0a43a26..018e0d99d 100644 --- a/glib/gnulib/vasnprintf.c +++ b/glib/gnulib/vasnprintf.c @@ -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;