Commit 5915f45e authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Tim-Philipp Müller

all: Fix left-shift undefined behaviour

Cast to the target type before shifting (or use macro if available)
parent d7f43bb0
......@@ -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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment