projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad161f7
)
printf: handle unsigned modifier for long long
author
Aurélien Zanelli
<aurelien.zanelli@parrot.com>
Tue, 3 Feb 2015 15:12:32 +0000
(16:12 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 12 Mar 2015 15:23:20 +0000
(15:23 +0000)
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
gst/printf/vasnprintf.c
patch
|
blob
|
history
diff --git
a/gst/printf/vasnprintf.c
b/gst/printf/vasnprintf.c
index
7f3d9e2
..
b40fc09
100644
(file)
--- 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;