[Mesa-dev] [PATCH 14/23] gallium/aux/util/u_surface.c: Silence a -Wsign-compare warning.
Gert Wollny
gw.fossdev at gmail.com
Sun Nov 12 13:55:46 UTC 2017
Explicitely convert one value to compare.
---
src/gallium/auxiliary/util/u_surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/util/u_surface.c b/src/gallium/auxiliary/util/u_surface.c
index 0a79a25a43..c66f279dc2 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++) {
--
2.13.6
More information about the mesa-dev
mailing list