summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/ir.cpp2
1 files changed, 1 insertions, 1 deletions
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];
}