all: Fix left-shift undefined behaviour

Cast to the target type before shifting (or use macro if available)
This commit is contained in:
Edward Hervey 2017-11-20 17:06:07 +01:00 committed by Tim-Philipp Müller
parent d7f43bb06b
commit 5915f45e27

View file

@ -574,7 +574,7 @@ gst_gl_context_get_current_gl_api (GstGLPlatform platform, guint * major,
#endif #endif
const gchar *version; const gchar *version;
gint maj, min, n; gint maj, min, n;
GstGLAPI ret = (1 << 31); GstGLAPI ret = (1U << 31);
_init_debug (); _init_debug ();