projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9fef0f
)
gallium/aux/util/u_surface.c: Silence a -Wsign-compare warning.
author
Gert Wollny
<gw.fossdev@gmail.com>
Thu, 16 Nov 2017 15:09:47 +0000
(16:09 +0100)
committer
Brian Paul
<brianp@vmware.com>
Fri, 17 Nov 2017 16:27:57 +0000
(09:27 -0700)
Explicitely convert one value to compare.
Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/util/u_surface.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_surface.c
b/src/gallium/auxiliary/util/u_surface.c
index 0a79a25a439d36ecbf19a5255b151b538a9f9e19..c66f279dc2efe022d03e3ba5ebe3c20f842c4373 100644
(file)
--- 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++) {