From 28b014ee256290eb0494b967e40c475c0c895f57 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 5 Apr 2006 03:05:17 +0000 Subject: Silence minor compiler warnings (-Wextra). --- src/mesa/shader/nvfragparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/shader/nvfragparse.c') diff --git a/src/mesa/shader/nvfragparse.c b/src/mesa/shader/nvfragparse.c index c359cf3560..e5a34205fb 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); } -- cgit v1.2.3