From a760ccf6d8a1f94d505b4c211ff4c30bc1d325a8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 3 Dec 2004 15:24:34 +0000 Subject: silence a variety of warnings found with g++ 3.4.2 --- src/mesa/main/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/image.c') diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index 5e65bf6f8e..12f8352c2d 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -4177,7 +4177,7 @@ _mesa_clip_readpixels(const GLcontext *ctx, *srcX = 0; } /* right clipping */ - if (*srcX + *width > buffer->Width) + if (*srcX + *width > (GLsizei) buffer->Width) *width -= (*srcX + *width - buffer->Width); if (*width <= 0) @@ -4190,7 +4190,7 @@ _mesa_clip_readpixels(const GLcontext *ctx, *srcY = 0; } /* top clipping */ - if (*srcY + *height > buffer->Height) + if (*srcY + *height > (GLsizei) buffer->Height) *height -= (*srcY + *height - buffer->Height); if (*height <= 0) -- cgit v1.2.3