Module Name:    xsrc
Committed By:   mrg
Date:           Sun Feb  4 09:36:25 UTC 2018

Modified Files:
        xsrc/external/mit/MesaLib7/dist/src/glsl: ir_validate.cpp

Log Message:
fix a signed vs unsigned issue GCC 6.4 picked up.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    xsrc/external/mit/MesaLib7/dist/src/glsl/ir_validate.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/MesaLib7/dist/src/glsl/ir_validate.cpp
diff -u xsrc/external/mit/MesaLib7/dist/src/glsl/ir_validate.cpp:1.1.1.1 xsrc/external/mit/MesaLib7/dist/src/glsl/ir_validate.cpp:1.2
--- xsrc/external/mit/MesaLib7/dist/src/glsl/ir_validate.cpp:1.1.1.1	Mon Jan  5 02:40:57 2015
+++ xsrc/external/mit/MesaLib7/dist/src/glsl/ir_validate.cpp	Sun Feb  4 09:36:25 2018
@@ -447,7 +447,7 @@ ir_validate::visit_leave(ir_expression *
 ir_visitor_status
 ir_validate::visit_leave(ir_swizzle *ir)
 {
-   int chans[4] = {ir->mask.x, ir->mask.y, ir->mask.z, ir->mask.w};
+   unsigned chans[4] = {ir->mask.x, ir->mask.y, ir->mask.z, ir->mask.w};
 
    for (unsigned int i = 0; i < ir->type->vector_elements; i++) {
       if (chans[i] >= ir->val->type->vector_elements) {

Reply via email to