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

This commit is contained in:
José Fonseca
2009-06-08 16:29:46 +01:00
parent 42678dba94
commit e09f78d8dc
+1 -1
View 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];