From 955babf2d951514f9011e661a2f94f3937adbdc6 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 1 Jan 2013 08:47:04 -0700 Subject: [PATCH] glsl: add cast to silence signed/unsigned comparision warning --- src/mesa/main/uniform_query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0