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:
63c1728
)
value: Use an unsigned 64 bit integer as a mask
author
Sebastian Dröge
<sebastian@centricular.com>
Tue, 22 Apr 2014 16:16:10 +0000
(18:16 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 22 Apr 2014 16:16:10 +0000
(18:16 +0200)
We shift the mask to the right later and shifting the result
of shifting over the sign bit is undefined.
gst/gstvalue.c
patch
|
blob
|
history
diff --git
a/gst/gstvalue.c
b/gst/gstvalue.c
index
6643080
..
cd95034
100644
(file)
--- a/
gst/gstvalue.c
+++ b/
gst/gstvalue.c
@@
-2532,7
+2532,7
@@
gst_value_deserialize_int_helper (gint64 * to, const gchar * s,
{
gboolean ret = FALSE;
gchar *end;
- gint64 mask = -1;
+ g
u
int64 mask = -1;
errno = 0;
*to = g_ascii_strtoull (s, &end, 0);