Mesa (mesa_7_5_branch): mesa: Use matching signedness for the counter as upper bound.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Jun 8 16:02:35 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: e09f78d8dc7f20bb11f84206b6f1d71418332d8a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e09f78d8dc7f20bb11f84206b6f1d71418332d8a

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Jun  8 16:29:46 2009 +0100

mesa: Use matching signedness for the counter as upper bound.

---

 src/mesa/main/debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/debug.c b/src/mesa/main/debug.c
index 2eabcda..b54e479 100644
--- a/src/mesa/main/debug.c
+++ b/src/mesa/main/debug.c
@@ -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];




More information about the mesa-commit mailing list