summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2017-09-21 10:02:15 -0600
committerBrian Paul <brianp@vmware.com>2017-09-21 10:02:17 -0600
commit5513f01f72d8ec6bce60b7e1dfd514dfb57b19c3 (patch)
tree7fd86cc890c9da8be07cf0f28c0c27bb6a3a5900 /src/compiler
parentc5b4a5b96775ef681ad33234505105d5091ee48b (diff)
glsl: silence signed/unsigned comparison warning
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Diffstat (limited to 'src/compiler')
-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];
}