Mesa (master): util: silence MSVC signed/unsigned comparison warnings
Brian Paul
brianp at kemper.freedesktop.org
Fri Jan 25 22:48:26 UTC 2013
Module: Mesa
Branch: master
Commit: 257783b939a54d567a4cc2ce8422e10f65ffc3ee
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=257783b939a54d567a4cc2ce8422e10f65ffc3ee
Author: Brian Paul <brianp at vmware.com>
Date: Tue Jan 22 17:46:13 2013 -0700
util: silence MSVC signed/unsigned comparison warnings
Reviewed-by: José Fonseca <jfonseca at vmware.com>
---
src/gallium/auxiliary/util/u_tile.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_tile.h b/src/gallium/auxiliary/util/u_tile.h
index abcd402..9e81944 100644
--- a/src/gallium/auxiliary/util/u_tile.h
+++ b/src/gallium/auxiliary/util/u_tile.h
@@ -45,13 +45,13 @@ struct pipe_transfer;
static INLINE boolean
u_clip_tile(uint x, uint y, uint *w, uint *h, const struct pipe_box *box)
{
- if (x >= box->width)
+ if ((int) x >= box->width)
return TRUE;
- if (y >= box->height)
+ if ((int) y >= box->height)
return TRUE;
- if (x + *w > box->width)
+ if ((int) (x + *w) > box->width)
*w = box->width - x;
- if (y + *h > box->height)
+ if ((int) (y + *h) > box->height)
*h = box->height - y;
return FALSE;
}
More information about the mesa-commit
mailing list