[Mesa-dev] [PATCH 8/8] st/mesa: silence MSVC signed/unsigned comparison warning

Brian Paul brian.e.paul at gmail.com
Tue Oct 16 17:35:29 PDT 2012


From: Brian Paul <brianp at vmware.com>

---
 src/mesa/state_tracker/st_extensions.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 08a41c3..0560f3a 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -298,7 +298,8 @@ static void init_format_extensions(struct st_context *st,
 {
    struct pipe_screen *screen = st->pipe->screen;
    GLboolean *extensions = (GLboolean *) &st->ctx->Extensions;
-   int i, j;
+   unsigned i;
+   int j;
    int num_formats = Elements(mapping->format);
    int num_ext = Elements(mapping->extension_offset);
 
-- 
1.7.4.1



More information about the mesa-dev mailing list