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

index ed38bacc416cfb8efb72c9a184b7cc7e474da607..d78352ab630481306841215c00ef71917f775abe 100644 (file)
@@ -87,7 +87,7 @@ struct softpipe_context {
    struct pipe_index_buffer index_buffer;
 
    struct draw_so_target *so_targets[PIPE_MAX_SO_BUFFERS];
-   int num_so_targets;
+   unsigned num_so_targets;
    
    struct pipe_query_data_so_statistics so_stats;
    unsigned num_primitives_generated;
index 2b5893906c8ede4ece3f8a49250d2a15ca81f3f4..3682c6c6742175fa2606d871047a693d289ba5a2 100644 (file)
@@ -66,7 +66,7 @@ softpipe_set_so_targets(struct pipe_context *pipe,
                         unsigned append_bitmask)
 {
    struct softpipe_context *softpipe = softpipe_context(pipe);
-   int i;
+   unsigned i;
 
    for (i = 0; i < num_targets; i++) {
       pipe_so_target_reference((struct pipe_stream_output_target **)&softpipe->so_targets[i], targets[i]);