diff options
author | Michal Krol <[email protected]> | 2009-09-08 10:57:39 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-08 10:57:39 +0200 |
commit | b837f6c372f0059170d93ac564f58aeebca3c70a (patch) | |
tree | 27a7307f38ea5301e34905ba1b90242d9b814999 /src/mesa | |
parent | d06069f30513163108489dd189dc8027cb4ad643 (diff) |
grammar: Fix token stripping.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/grammar/grammar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/grammar/grammar.c b/src/mesa/shader/grammar/grammar.c index fdbdcd40c09..36ed9d5603b 100644 --- a/src/mesa/shader/grammar/grammar.c +++ b/src/mesa/shader/grammar/grammar.c @@ -3226,11 +3226,15 @@ grammar_fast_check (grammar id, case SL_PP_IDENTIFIER: case SL_PP_NUMBER: *dst++ = *src++; + break; default: src++; } } + + /* The end of stream token. */ + *dst = *src; } } |