summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i810/i810ioctl.c
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2005-02-14 09:27:38 +0000
committerDave Airlie <airliedfreedesktop.org>2005-02-14 09:27:38 +0000
commit8d12a6d537ca346291bc3e3bc90cc73509f4b419 (patch)
tree65e93d5c0717c2fa23f73a12345be148231fa0bd /src/mesa/drivers/dri/i810/i810ioctl.c
parentfbdd7a5e7487849bfe06a7bef68b4dad75f5d58c (diff)
fix some signed vs unsigned warnings
Diffstat (limited to 'src/mesa/drivers/dri/i810/i810ioctl.c')
-rw-r--r--src/mesa/drivers/dri/i810/i810ioctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i810/i810ioctl.c b/src/mesa/drivers/dri/i810/i810ioctl.c
index c62e581789..50ddd0976f 100644
--- a/src/mesa/drivers/dri/i810/i810ioctl.c
+++ b/src/mesa/drivers/dri/i810/i810ioctl.c
@@ -55,7 +55,7 @@ static void i810Clear( GLcontext *ctx, GLbitfield mask, GLboolean all,
__DRIdrawablePrivate *dPriv = imesa->driDrawable;
const GLuint colorMask = *((GLuint *) &ctx->Color.ColorMask);
drmI810Clear clear;
- int i;
+ unsigned int i;
clear.flags = 0;
clear.clear_color = imesa->ClearColor;
@@ -63,12 +63,12 @@ static void i810Clear( GLcontext *ctx, GLbitfield mask, GLboolean all,
I810_FIREVERTICES( imesa );
- if ((mask & DD_FRONT_LEFT_BIT) && colorMask == ~0) {
+ if ((mask & DD_FRONT_LEFT_BIT) && colorMask == ~0U) {
clear.flags |= I810_FRONT;
mask &= ~DD_FRONT_LEFT_BIT;
}
- if ((mask & DD_BACK_LEFT_BIT) && colorMask == ~0) {
+ if ((mask & DD_BACK_LEFT_BIT) && colorMask == ~0U) {
clear.flags |= I810_BACK;
mask &= ~DD_BACK_LEFT_BIT;
}
@@ -89,7 +89,7 @@ static void i810Clear( GLcontext *ctx, GLbitfield mask, GLboolean all,
for (i = 0 ; i < imesa->numClipRects ; )
{
- int nr = MIN2(i + I810_NR_SAREA_CLIPRECTS, imesa->numClipRects);
+ unsigned int nr = MIN2(i + I810_NR_SAREA_CLIPRECTS, imesa->numClipRects);
drm_clip_rect_t *box = imesa->pClipRects;
drm_clip_rect_t *b = (drm_clip_rect_t *)imesa->sarea->boxes;
int n = 0;