From: Brian Paul Date: Sat, 27 Oct 2012 14:58:19 +0000 (-0600) Subject: mesa: silence MSVC signed/unsigned comparision warnings in accum.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03503daa2118c760fb2963c6ac5a813f58941fa1;p=mesa.git mesa: silence MSVC signed/unsigned comparision warnings in accum.c Reviewed-by: Jose Fonseca --- diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c index 8b71640df6c..e2d7726b504 100644 --- a/src/mesa/main/accum.c +++ b/src/mesa/main/accum.c @@ -205,7 +205,7 @@ accum_scale_or_bias(struct gl_context *ctx, GLfloat value, if (accRb->Format == MESA_FORMAT_SIGNED_RGBA_16) { const GLshort incr = (GLshort) (value * 32767.0f); - GLuint i, j; + GLint i, j; if (bias) { for (j = 0; j < height; j++) { GLshort *acc = (GLshort *) accMap; @@ -283,7 +283,7 @@ accum_or_load(struct gl_context *ctx, GLfloat value, if (accRb->Format == MESA_FORMAT_SIGNED_RGBA_16) { const GLfloat scale = value * 32767.0f; - GLuint i, j; + GLint i, j; GLfloat (*rgba)[4]; rgba = malloc(width * 4 * sizeof(GLfloat));