From: Brian Paul Date: Sat, 15 Oct 2011 22:36:11 +0000 (-0600) Subject: i965: silence signed/unsigned comparison warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3560027977804a3ac4ae8e6c9390f0936f7f7a1a;p=mesa.git i965: silence signed/unsigned comparison warning Reviewed-by: Paul Berry --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index e0030206863..0ea6d317e09 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1549,7 +1549,8 @@ vec4_visitor::try_rewrite_rhs_to_dst(ir_assignment *ir, * potentially reswizzle the operands of many instructions so that * we could handle out of order channels, but don't yet. */ - for (int i = 0; i < 4; i++) { + + for (unsigned i = 0; i < 4; i++) { if (dst.writemask & (1 << i)) { if (!(last_rhs_inst->dst.writemask & (1 << i))) return false;