summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-06-26 09:26:42 -0600
committerBrian Paul <brianp@vmware.com>2013-06-26 10:42:59 -0600
commit4d452f1988931e7101146d1cf2807c2a02437dbb (patch)
tree54aaa29b34d11e53e1532992f6fc922499c83994 /src/gallium/auxiliary/util
parentbbdd7cfb8ba34943ac5890637024fee46b03ab13 (diff)
downloadexternal_mesa3d-4d452f1988931e7101146d1cf2807c2a02437dbb.zip
external_mesa3d-4d452f1988931e7101146d1cf2807c2a02437dbb.tar.gz
external_mesa3d-4d452f1988931e7101146d1cf2807c2a02437dbb.tar.bz2
util: int/unsigned changes to silence some MSVC warnings
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_slab.c2
-rw-r--r--src/gallium/auxiliary/util/u_staging.c4
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 f9f5ef6..dbdebc6 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 b5e3793..b569c8f 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;