From: Brian Paul Date: Thu, 21 Sep 2017 16:02:15 +0000 (-0600) Subject: glsl: silence signed/unsigned comparison warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5513f01f72d8ec6bce60b7e1dfd514dfb57b19c3;p=mesa.git glsl: silence signed/unsigned comparison warning Reviewed-by: Samuel Pitoiset --- diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp index 49db56e0085..18bf1eb6386 100644 --- a/src/compiler/glsl/ir.cpp +++ b/src/compiler/glsl/ir.cpp @@ -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]; }