projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5b4a5b
)
glsl: silence signed/unsigned comparison warning
author
Brian Paul
<brianp@vmware.com>
Thu, 21 Sep 2017 16:02:15 +0000
(10:02 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 21 Sep 2017 16:02:17 +0000
(10:02 -0600)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/compiler/glsl/ir.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/ir.cpp
b/src/compiler/glsl/ir.cpp
index 49db56e00850291d291f93e8563ccdbca3e63e0c..18bf1eb6386628e8738cceb8d70e63e39e4ee138 100644
(file)
--- 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];
}