glsl: silence signed/unsigned comparison warning
authorBrian Paul <brianp@vmware.com>
Thu, 21 Sep 2017 16:02:15 +0000 (10:02 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 21 Sep 2017 16:02:17 +0000 (10:02 -0600)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/compiler/glsl/ir.cpp

index 49db56e00850291d291f93e8563ccdbca3e63e0c..18bf1eb6386628e8738cceb8d70e63e39e4ee138 100644 (file)
@@ -1100,7 +1100,7 @@ ir_constant *
 ir_constant::get_record_field(int idx)
 {
    assert(this->type->is_record());
-   assert(idx >= 0 && idx < this->type->length);
+   assert(idx >= 0 && (unsigned) idx < this->type->length);
 
    return const_elements[idx];
 }