glsl: add cast to silence signed/unsigned comparision warning
authorBrian Paul <brianp@vmware.com>
Tue, 1 Jan 2013 15:47:04 +0000 (08:47 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Jan 2013 15:47:04 +0000 (08:47 -0700)
src/mesa/main/uniform_query.cpp

index 142ad1fbdc0d6259521e293a7ee1548a223a4fe7..afe9a08c1842b1665bea5517c999bbef4581ce7f 100644 (file)
@@ -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;
    }