summaryrefslogtreecommitdiff
path: root/gst/gstbin.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-04-22 18:23:15 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-04-22 18:23:15 +0200
commitce8752c5ce27a02286d154be534a7ced32b971be (patch)
tree11a68a458047b172944b3d487ada204333c05377 /gst/gstbin.c
parent3cbcfa1d7e9ad5fb466988965ace732843b54696 (diff)
bin: Don't left-shift into the sign bit, the result is undefined
Diffstat (limited to 'gst/gstbin.c')
-rw-r--r--gst/gstbin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstbin.c b/gst/gstbin.c
index faf6e8407..8fbac35c2 100644
--- a/gst/gstbin.c
+++ b/gst/gstbin.c
@@ -888,8 +888,8 @@ find_message (GstBin * bin, GstObject * src, GstMessageType types)
guint i;
for (i = 0; i < 32; i++)
- if (types & (1 << i))
- GST_DEBUG_OBJECT (bin, " %s", gst_message_type_get_name (1 << i));
+ if (types & (1U << i))
+ GST_DEBUG_OBJECT (bin, " %s", gst_message_type_get_name (1U << i));
}
#endif
}