summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-04-22 18:16:10 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-04-22 18:16:10 +0200
commit3cbcfa1d7e9ad5fb466988965ace732843b54696 (patch)
treecfc0e8670f5339fe79b136d0bfb22996fb76a24f
parent63c17280408410d799e1c2f2ed49c5ab04cc80ae (diff)
value: Use an unsigned 64 bit integer as a mask
We shift the mask to the right later and shifting the result of shifting over the sign bit is undefined.
-rw-r--r--gst/gstvalue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstvalue.c b/gst/gstvalue.c
index 6643080ee1..cd95034ab0 100644
--- 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;
+ guint64 mask = -1;
errno = 0;
*to = g_ascii_strtoull (s, &end, 0);