mesa: Silence GCC warning 'comparison between signed and unsigned integer expressions'
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 10 Sep 2013 16:48:21 +0000 (11:48 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 19 Sep 2013 22:15:09 +0000 (17:15 -0500)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/main/get.c

index d9499ccf2b8aa1ea93b10f41a760c609ec4a84d9..7af5f5591a4b2c058e0edd16f0df0a0dbef2beaf 100644 (file)
@@ -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;
 
    case GL_MAX_VARYING_FLOATS_ARB: