summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Zanelli <aurelien.zanelli@parrot.com>2015-02-03 16:12:32 +0100
committerTim-Philipp Müller <tim@centricular.com>2015-03-12 15:23:20 +0000
commit3da3e8df3e50d4cef1d0198aa620a9e78367d7f8 (patch)
treee80e6ce12845b5640b297cc3e539a8267cfe47e9
parentad161f7df51c05858be486af2c05c7923e9a4aa1 (diff)
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
-rw-r--r--gst/printf/vasnprintf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/printf/vasnprintf.c b/gst/printf/vasnprintf.c
index 7f3d9e2f2..b40fc092d 100644
--- a/gst/printf/vasnprintf.c
+++ b/gst/printf/vasnprintf.c
@@ -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;