Mesa (master): mesa: silence MSVC signed/ unsigned comparison warning in texstorage.c

Brian Paul brianp at kemper.freedesktop.org
Mon Oct 29 23:57:03 UTC 2012


Module: Mesa
Branch: master
Commit: db0136ae3e6679c0edfdef00ec55d5ed98346f6c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db0136ae3e6679c0edfdef00ec55d5ed98346f6c

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Oct 27 08:58:19 2012 -0600

mesa: silence MSVC signed/unsigned comparison warning in texstorage.c

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 src/mesa/main/texstorage.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c
index ca02ef3..283aefa 100644
--- a/src/mesa/main/texstorage.c
+++ b/src/mesa/main/texstorage.c
@@ -284,7 +284,7 @@ tex_storage_error_check(struct gl_context *ctx, GLuint dims, GLenum target,
    }  
 
    /* check levels against maximum (note different error than above) */
-   if (levels > _mesa_max_texture_levels(ctx, target)) {
+   if (levels > (GLint) _mesa_max_texture_levels(ctx, target)) {
       _mesa_error(ctx, GL_INVALID_OPERATION,
                   "glTexStorage%uD(levels too large)", dims);
       return GL_TRUE;




More information about the mesa-commit mailing list