From 2707d5cfa6856762615e88fd7c66137b2574f60e Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 20 Nov 2017 17:06:07 +0100 Subject: all: Fix left-shift undefined behaviour Cast to the target type before shifting (or use macro if available) --- gst-libs/gst/gl/gstglcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst-libs') diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index 83b50c65c..a64cd73b5 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -569,7 +569,7 @@ gst_gl_context_get_current_gl_api (GstGLPlatform platform, guint * major, #endif const gchar *version; gint maj, min, n; - GstGLAPI ret = (1 << 31); + GstGLAPI ret = (1U << 31); _init_debug (); -- cgit v1.2.1