rbug: silence some MSVC signed/unsigned warnings
authorBrian Paul <brianp@vmware.com>
Wed, 20 Mar 2013 16:54:24 +0000 (10:54 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 21 Mar 2013 15:24:35 +0000 (09:24 -0600)
src/gallium/drivers/rbug/rbug_context.c
src/gallium/drivers/rbug/rbug_core.c

index 36fa8b7..f57db40 100644 (file)
@@ -60,7 +60,7 @@ rbug_draw_block_locked(struct rbug_context *rb_pipe, int flag)
       rb_pipe->draw_blocked |= flag;
    } else if ((rb_pipe->draw_rule.blocker & flag) &&
               (rb_pipe->draw_blocker & RBUG_BLOCK_RULE)) {
-      int k;
+      unsigned k;
       boolean block = FALSE;
       unsigned sh;
 
index 0277b13..b957261 100644 (file)
@@ -321,7 +321,7 @@ rbug_context_info(struct rbug_rbug *tr_rbug, struct rbug_header *header, uint32_
    struct rbug_context *rb_context = NULL;
    rbug_texture_t cbufs[PIPE_MAX_COLOR_BUFS];
    rbug_texture_t texs[PIPE_MAX_SAMPLERS];
-   int i;
+   unsigned i;
 
    pipe_mutex_lock(rb_screen->list_mutex);
    rb_context = rbug_get_context_locked(rb_screen, info->context);