projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42678db
)
mesa: Use matching signedness for the counter as upper bound.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 8 Jun 2009 15:29:46 +0000
(16:29 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 8 Jun 2009 15:56:41 +0000
(16:56 +0100)
src/mesa/main/debug.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/debug.c
b/src/mesa/main/debug.c
index 2eabcdaf493f17c98b28cbc20f9c643b5a5b7fe7..b54e47919dd4b370de5513e751f0932a195a4ffa 100644
(file)
--- 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;
+ GL
u
int i;
for (i = 0; i < img->Width * img->Height; i++) {
GLint r, g, b;
GLushort s = ((GLushort *) img->Data)[i];