mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 08:30:10 +01:00
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 <kenneth@whitecape.org>
This commit is contained in:
parent
024db256d4
commit
b754e52532
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue