diff options
author | Brian Paul <[email protected]> | 2013-06-26 09:26:42 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-06-26 10:42:59 -0600 |
commit | 4d452f1988931e7101146d1cf2807c2a02437dbb (patch) | |
tree | 54aaa29b34d11e53e1532992f6fc922499c83994 /src/gallium/auxiliary | |
parent | bbdd7cfb8ba34943ac5890637024fee46b03ab13 (diff) |
util: int/unsigned changes to silence some MSVC warnings
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_slab.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_staging.c | 4 |
2 files changed, 3 insertions, 3 deletions
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; |