diff options
author | Brian Paul <[email protected]> | 2006-04-05 03:05:17 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-04-05 03:05:17 +0000 |
commit | 28b014ee256290eb0494b967e40c475c0c895f57 (patch) | |
tree | 9196b0a5fc1fbdd151ac80335e0517771c960998 /src/mesa/shader | |
parent | 027bb77e02cf38c553d1396a348783ddc1b7913c (diff) |
Silence minor compiler warnings (-Wextra).
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/nvfragparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/nvfragparse.c b/src/mesa/shader/nvfragparse.c index c359cf35607..e5a34205fbd 100644 --- a/src/mesa/shader/nvfragparse.c +++ b/src/mesa/shader/nvfragparse.c @@ -248,7 +248,7 @@ MatchInstruction(const GLubyte *token) return result; } } - result.opcode = (enum prog_opcode) -1; + result.opcode = MAX_OPCODE; /* i.e. invalid instruction */ return result; } @@ -1320,7 +1320,7 @@ Parse_InstructionSequence(struct parse_state *parseState, /* try to find matching instuction */ instMatch = MatchInstruction(token); - if (instMatch.opcode < 0) { + if (instMatch.opcode >= MAX_OPCODE) { /* bad instruction name */ RETURN_ERROR2("Unexpected token: ", token); } |