From 5915f45e2799f08326813e8b148ef1cfc4446509 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 20 Nov 2017 17:06:07 +0100 Subject: [PATCH] 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(-) diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index 11967e9d29..d89e4db431 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -574,7 +574,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 ();