From: Michal Krol Date: Tue, 8 Sep 2009 08:57:39 +0000 (+0200) Subject: grammar: Fix token stripping. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b837f6c372f0059170d93ac564f58aeebca3c70a;p=mesa.git grammar: Fix token stripping. --- 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; } }