grammar: Fix token stripping.
authorMichal Krol <michal@vmware.com>
Tue, 8 Sep 2009 08:57:39 +0000 (10:57 +0200)
committerMichal Krol <michal@vmware.com>
Tue, 8 Sep 2009 08:57:39 +0000 (10:57 +0200)
src/mesa/shader/grammar/grammar.c

index fdbdcd40c09bde79f747b0aca68670fcc1d10806..36ed9d5603b25865d34177d795f8470b25120c81 100644 (file)
@@ -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;
       }
    }