Mesa (master): i965: silence signed/unsigned comparison warning

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 19 12:55:16 PDT 2011


Module: Mesa
Branch: master
Commit: 3560027977804a3ac4ae8e6c9390f0936f7f7a1a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3560027977804a3ac4ae8e6c9390f0936f7f7a1a

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Oct 15 16:36:11 2011 -0600

i965: silence signed/unsigned comparison warning

Reviewed-by: Paul Berry <stereotype441 at gmail.com>

---

 src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index e003020..0ea6d31 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;



More information about the mesa-commit mailing list