mesa/shaderimage.c: fix inconsistent sign warning
authorAlon Levy <alevy@redhat.com>
Tue, 22 Jul 2014 21:07:06 +0000 (00:07 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 23 Oct 2014 13:45:41 +0000 (14:45 +0100)
Signed-off-by: Alon Levy <alevy@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/shaderimage.c

index 9e62f4294b4ca20ace1ff0b4e856cbd6d6b858f0..dcbcca623606fad7a84549f02905138dab689c69 100644 (file)
@@ -384,7 +384,7 @@ validate_image_unit(struct gl_context *ctx, struct gl_image_unit *u)
 void
 _mesa_validate_image_units(struct gl_context *ctx)
 {
-   int i;
+   unsigned i;
 
    for (i = 0; i < ctx->Const.MaxImageUnits; ++i) {
       struct gl_image_unit *u = &ctx->ImageUnits[i];