mesa: Silence GCC warning in _mesa_test_texobj_completeness
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 20 Nov 2013 20:58:37 +0000 (12:58 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 5 Dec 2013 01:22:42 +0000 (17:22 -0800)
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 <ian.d.romanick@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texobj.c

index 4c3d4687027700b44c9c1d158a17a9772cc5a834..012e873f5aaefc648545b6203d573d42f3a396d9 100644 (file)
@@ -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);