From: Iago Toral Quiroga Date: Fri, 18 Sep 2015 09:02:34 +0000 (+0200) Subject: i965/fs: Fix comparison between signed and unsigned integer expressions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7ca52dd6d8b4b0fcdf01d8def5edf913ece6861;p=mesa.git i965/fs: Fix comparison between signed and unsigned integer expressions brw_fs_visitor.cpp: In member function 'void fs_visitor::emit_urb_writes()': brw_fs_visitor.cpp:977:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Reviewed-by: Tapani Pälli --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index b85b52b38d8..5bf6449fa13 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -974,9 +974,9 @@ fs_visitor::emit_urb_writes() sources[length++] = reg; } } else { - for (int i = 0; i < output_components[varying]; i++) + for (unsigned i = 0; i < output_components[varying]; i++) sources[length++] = offset(this->outputs[varying], bld, i); - for (int i = output_components[varying]; i < 4; i++) + for (unsigned i = output_components[varying]; i < 4; i++) sources[length++] = fs_reg(0); } break;