From: Ian Romanick Date: Wed, 20 Nov 2013 20:58:37 +0000 (-0800) Subject: mesa: Silence GCC warning in _mesa_test_texobj_completeness X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c84fc2dbfdadf33dc7d3ddcd146e525c94eac99;p=mesa.git mesa: Silence GCC warning in _mesa_test_texobj_completeness main/texobj.c: In function '_mesa_test_texobj_completeness': main/texobj.c:553:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] main/texobj.c:553:193: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] main/texobj.c:553:254: warning: signed and unsigned type in conditional expression [-Wsign-compare] main/texobj.c:553:148: warning: signed and unsigned type in conditional expression [-Wsign-compare] Signed-off-by: Ian Romanick Reviewed-by: Jordan Justen Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 4c3d4687027..012e873f5aa 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -552,7 +552,7 @@ _mesa_test_texobj_completeness( const struct gl_context *ctx, t->_MaxLevel = MIN3(t->MaxLevel, /* 'p' in the GL spec */ - baseLevel + baseImage->MaxNumLevels - 1, + (int) (baseLevel + baseImage->MaxNumLevels - 1), /* 'q' in the GL spec */ maxLevels - 1);