i965/fs: Fix comparison between signed and unsigned integer expressions
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 18 Sep 2015 09:02:34 +0000 (11:02 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 18 Sep 2015 11:37:25 +0000 (13:37 +0200)
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 <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index b85b52b38d8204067edf2df52f272aaf1b73ec57..5bf6449fa131e48c60e5c9bf979601e3305299ad 100644 (file)
@@ -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;