From: Nicolai Hähnle Date: Sat, 30 Apr 2016 04:38:09 +0000 (-0500) Subject: mesa/main: fix another undefined left shift X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdad1393a04bd1c2ad99ed62978849796db162ed;p=mesa.git mesa/main: fix another undefined left shift Reviewed-by: Brian Paul Reviewed-by: Michel Dänzer Reviewed-by: Marek Olšák --- diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index acb2d06dfd8..35b93d323b5 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -78,7 +78,7 @@ _mesa_update_shader_textures_used(struct gl_shader_program *shProg, shProg->SamplersValidated = GL_TRUE; for (s = 0; s < MAX_SAMPLERS; s++) { - if (prog->SamplersUsed & (1 << s)) { + if (prog->SamplersUsed & (1u << s)) { GLuint unit = shader->SamplerUnits[s]; GLuint tgt = shader->SamplerTargets[s]; assert(unit < ARRAY_SIZE(prog->TexturesUsed));