summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2017-11-16 16:09:47 +0100
committerBrian Paul <[email protected]>2017-11-17 09:27:57 -0700
commita5da06d9b76a2c9271b8518178ee613c4553ab9f (patch)
tree2d72475c0e664cbfbeeba5234f7847e331e736c3 /src/gallium/auxiliary
parentc9fef0fa9f936a9a0d8a6ae148c2f9a5857f0e9e (diff)
gallium/aux/util/u_surface.c: Silence a -Wsign-compare warning.
Explicitely convert one value to compare. Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_surface.c2
1 files changed, 1 insertions, 1 deletions
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++) {