From 5513f01f72d8ec6bce60b7e1dfd514dfb57b19c3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 21 Sep 2017 10:02:15 -0600 Subject: glsl: silence signed/unsigned comparison warning Reviewed-by: Samuel Pitoiset --- src/compiler/glsl/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/glsl') 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]; } -- cgit v1.2.3