From: Brian Paul Date: Tue, 1 Jan 2013 15:47:04 +0000 (-0700) Subject: glsl: add cast to silence signed/unsigned comparision warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=955babf2d951514f9011e661a2f94f3937adbdc6;p=mesa.git glsl: add cast to silence signed/unsigned comparision warning --- diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 142ad1fbdc0..afe9a08c184 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -1028,7 +1028,7 @@ _mesa_get_uniform_location(struct gl_context *ctx, * array_elements is zero and offset >= 0. */ if (array_lookup - && offset >= shProg->UniformStorage[location].array_elements) { + && offset >= (long) shProg->UniformStorage[location].array_elements) { return GL_INVALID_INDEX; }