mesa: Use matching signedness for the counter as upper bound.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 8 Jun 2009 15:29:46 +0000 (16:29 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 8 Jun 2009 15:56:41 +0000 (16:56 +0100)
src/mesa/main/debug.c

index 2eabcdaf493f17c98b28cbc20f9c643b5a5b7fe7..b54e47919dd4b370de5513e751f0932a195a4ffa 100644 (file)
@@ -282,7 +282,7 @@ write_texture_image(struct gl_texture_object *texObj)
       case MESA_FORMAT_RGB565:
          {
             GLubyte *buf2 = (GLubyte *) _mesa_malloc(img->Width * img->Height * 3);
-            GLint i;
+            GLuint i;
             for (i = 0; i < img->Width * img->Height; i++) {
                GLint r, g, b;
                GLushort s = ((GLushort *) img->Data)[i];