Module: Mesa Branch: master Commit: 955babf2d951514f9011e661a2f94f3937adbdc6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=955babf2d951514f9011e661a2f94f3937adbdc6
Author: Brian Paul <[email protected]> Date: Tue Jan 1 08:47:04 2013 -0700 glsl: add cast to silence signed/unsigned comparision warning --- src/mesa/main/uniform_query.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 142ad1f..afe9a08 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; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
