[Mesa-dev] [PATCH 3/8] mesa: silence MSVC signed/unsigned comparision warnings in accum.c

Brian Paul brianp at vmware.com
Sat Oct 27 07:59:25 PDT 2012


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

diff --git a/src/mesa/main/accum.c b/src/mesa/main/accum.c
index 8b71640..e2d7726 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));
-- 
1.7.3.4



More information about the mesa-dev mailing list