From b837f6c372f0059170d93ac564f58aeebca3c70a Mon Sep 17 00:00:00 2001 From: Michal Krol Date: Tue, 8 Sep 2009 10:57:39 +0200 Subject: [PATCH] grammar: Fix token stripping. --- src/mesa/shader/grammar/grammar.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.30.2