diff options
author | Edward Hervey <edward@centricular.com> | 2017-11-20 17:06:07 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-12-01 10:50:33 +0100 |
commit | 2707d5cfa6856762615e88fd7c66137b2574f60e (patch) | |
tree | 5eca461b7c98ddf7dbfc5e80e20d66c6ccd4e782 /gst-libs | |
parent | a8fa876d00bb6dee3dca11b43b396f1f4613baf1 (diff) | |
download | gstreamer-plugins-bad-2707d5cfa6856762615e88fd7c66137b2574f60e.tar.gz |
all: Fix left-shift undefined behaviour
Cast to the target type before shifting (or use macro if available)
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/gl/gstglcontext.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 (); |