[Mesa-dev] [PATCH] glsl: silence signed/unsigned comparison warning
Brian Paul
brianp at vmware.com
Wed Sep 20 02:22:55 UTC 2017
---
src/compiler/glsl/ir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp
index 49db56e..18bf1eb 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];
}
--
1.9.1
More information about the mesa-dev
mailing list