[virglrenderer-devel] [PATCH 09/16] gallium/aux/util/u_surface.c: Fix warning
Gert Wollny
gert.wollny at collabora.com
Thu May 31 09:15:41 UTC 2018
_surface.c: In function 'util_copy_rect':
u_surface.c:101:37: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
if (width == dst_stride && width == src_stride)
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
---
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 521bfe6..efc14fb 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 && (int)width == src_stride)
memcpy(dst, src, height * width);
else {
for (i = 0; i < height; i++) {
--
2.16.1
More information about the virglrenderer-devel
mailing list