[Mesa-dev] [PATCH 17/18] mesa: fix MSVC signed/unsigned warnings in context.c

Brian Paul brianp at vmware.com
Sun Nov 4 15:44:02 PST 2012


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

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index a4dedee..0508378 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -706,9 +706,9 @@ check_context_limits(struct gl_context *ctx)
    assert(MAX_TEXTURE_LEVELS >= MAX_CUBE_TEXTURE_LEVELS);
 
    /* Max texture size should be <= max viewport size (render to texture) */
-   assert((1 << (ctx->Const.MaxTextureLevels - 1))
+   assert((1U << (ctx->Const.MaxTextureLevels - 1))
           <= ctx->Const.MaxViewportWidth);
-   assert((1 << (ctx->Const.MaxTextureLevels - 1))
+   assert((1U << (ctx->Const.MaxTextureLevels - 1))
           <= ctx->Const.MaxViewportHeight);
 
    assert(ctx->Const.MaxDrawBuffers <= MAX_DRAW_BUFFERS);
-- 
1.7.3.4



More information about the mesa-dev mailing list