bin: Don't left-shift into the sign bit, the result is undefined
authorSebastian Dröge <sebastian@centricular.com>
Tue, 22 Apr 2014 16:23:15 +0000 (18:23 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 22 Apr 2014 16:23:15 +0000 (18:23 +0200)
gst/gstbin.c

index faf6e84..8fbac35 100644 (file)
@@ -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
   }