summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-08 10:57:39 +0200
committerMichal Krol <michal@vmware.com>2009-09-08 10:57:39 +0200
commitb837f6c372f0059170d93ac564f58aeebca3c70a (patch)
tree27a7307f38ea5301e34905ba1b90242d9b814999
parentd06069f30513163108489dd189dc8027cb4ad643 (diff)
grammar: Fix token stripping.
-rw-r--r--src/mesa/shader/grammar/grammar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/grammar/grammar.c b/src/mesa/shader/grammar/grammar.c
index fdbdcd40c0..36ed9d5603 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;
}
}