summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-01-01 08:47:04 -0700
committerBrian Paul <[email protected]>2013-01-01 08:47:04 -0700
commit955babf2d951514f9011e661a2f94f3937adbdc6 (patch)
tree1aafa9702392ef073a82ce1598bcd28bcd185973
parent05cd6cfd5f5a128404f09c4de1a7cf12f3f6f08a (diff)
glsl: add cast to silence signed/unsigned comparision warning
-rw-r--r--src/mesa/main/uniform_query.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}