[Mesa-dev] [PATCH 14/17] mesa: Silence GCC warning 'comparison between signed and unsigned integer expressions'

Ian Romanick idr at freedesktop.org
Tue Sep 10 12:11:01 PDT 2013


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/main/get.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 2f3d352..1f6201b 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -717,7 +717,7 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu
    case GL_COMPRESSED_TEXTURE_FORMATS_ARB:
       v->value_int_n.n = 
 	 _mesa_get_compressed_formats(ctx, v->value_int_n.ints);
-      ASSERT(v->value_int_n.n <= ARRAY_SIZE(v->value_int_n.ints));
+      ASSERT(v->value_int_n.n <= (int) ARRAY_SIZE(v->value_int_n.ints));
       break;
 
    /* Various object names */
-- 
1.8.1.4



More information about the mesa-dev mailing list