From: Gert Wollny Date: Thu, 16 Nov 2017 15:09:47 +0000 (+0100) Subject: gallium/aux/util/u_surface.c: Silence a -Wsign-compare warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5da06d9b76a2c9271b8518178ee613c4553ab9f;p=mesa.git gallium/aux/util/u_surface.c: Silence a -Wsign-compare warning. Explicitely convert one value to compare. Signed-off-by: Gert Wollny Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/util/u_surface.c b/src/gallium/auxiliary/util/u_surface.c index 0a79a25a439..c66f279dc2e 100644 --- a/src/gallium/auxiliary/util/u_surface.c +++ b/src/gallium/auxiliary/util/u_surface.c @@ -98,7 +98,7 @@ util_copy_rect(ubyte * dst, src += src_y * src_stride_pos; width *= blocksize; - if (width == dst_stride && width == src_stride) + if (width == dst_stride && width == (unsigned)src_stride) memcpy(dst, src, height * width); else { for (i = 0; i < height; i++) {