From: Ian Romanick Date: Tue, 10 Sep 2013 16:48:21 +0000 (-0500) Subject: mesa: Silence GCC warning 'comparison between signed and unsigned integer expressions' X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1cc3b90d47f92aa0be2d914191fd2f46d2b127d7;p=mesa.git mesa: Silence GCC warning 'comparison between signed and unsigned integer expressions' Signed-off-by: Ian Romanick Reviewed-by: Brian Paul Reviewed-by: Marek Olšák Reviewed-by: Paul Berry --- diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index d9499ccf2b8..7af5f5591a4 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; case GL_MAX_VARYING_FLOATS_ARB: