diff options
author | Matt Turner <[email protected]> | 2014-11-21 14:53:20 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-11-24 14:09:23 -0800 |
commit | b754e525325d6a04d2c43372cd359486ff69b812 (patch) | |
tree | b3929b7d7c727312e7ae3d1f7b2003313a39eebb | |
parent | 024db256d446668e65d39ca988b00ba16e3a88bc (diff) |
glsl: Fix tautological comparison.
Caught by clang.
warning: comparison of constant -1 with expression of type
'ir_texture_opcode' is always false
[-Wtautological-constant-out-of-range-compare]
if (op == -1)
~~ ^ ~~
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/glsl/ir_reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp index ae00e793496..fd318c046e2 100644 --- a/src/glsl/ir_reader.cpp +++ b/src/glsl/ir_reader.cpp @@ -972,7 +972,7 @@ ir_reader::read_texture(s_expression *expr) op = ir_query_levels; } else if (MATCH(expr, other_pattern)) { op = ir_texture::get_opcode(tag->value()); - if (op == -1) + if (op == (ir_texture_opcode) -1) return NULL; } else { ir_read_error(NULL, "unexpected texture pattern %s", tag->value()); |