From: Brian Paul Date: Wed, 26 Jun 2013 15:26:42 +0000 (-0600) Subject: util: int/unsigned changes to silence some MSVC warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d452f1988931e7101146d1cf2807c2a02437dbb;p=mesa.git util: int/unsigned changes to silence some MSVC warnings --- diff --git a/src/gallium/auxiliary/util/u_slab.c b/src/gallium/auxiliary/util/u_slab.c index f9f5ef68f3a..dbdebc6c9fc 100644 --- a/src/gallium/auxiliary/util/u_slab.c +++ b/src/gallium/auxiliary/util/u_slab.c @@ -55,7 +55,7 @@ static void util_slab_add_new_page(struct util_slab_mempool *pool) { struct util_slab_page *page; struct util_slab_block *block; - int i; + unsigned i; page = MALLOC(pool->page_size); insert_at_tail(&pool->list, page); diff --git a/src/gallium/auxiliary/util/u_staging.c b/src/gallium/auxiliary/util/u_staging.c index b5e37932e83..b569c8f9907 100644 --- a/src/gallium/auxiliary/util/u_staging.c +++ b/src/gallium/auxiliary/util/u_staging.c @@ -84,7 +84,7 @@ util_staging_transfer_init(struct pipe_context *pipe, if (usage & PIPE_TRANSFER_READ) { /* XXX this looks wrong dst is always the same but looping over src z? */ - unsigned zi; + int zi; struct pipe_box sbox; sbox.x = box->x; sbox.y = box->y; @@ -111,7 +111,7 @@ util_staging_transfer_destroy(struct pipe_context *pipe, struct pipe_transfer *p { if(tx->base.usage & PIPE_TRANSFER_WRITE) { /* XXX this looks wrong src is always the same but looping over dst z? */ - unsigned zi; + int zi; struct pipe_box sbox; sbox.x = 0; sbox.y = 0;