]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
reclassify_token should only deal with tokens < TOKEN_START... should fix #113
authorWolfgang Bumiller <wry.git@bumiller.com>
Sun, 16 Jun 2013 07:52:49 +0000 (09:52 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sun, 16 Jun 2013 07:56:21 +0000 (09:56 +0200)
parser.c

index 2a0e7b796ca27775f6579351c23a53f5dd950d15..cbae8d3cc68aaef87fa7ea14c42d202b379a0c56 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1690,6 +1690,8 @@ static bool parser_close_paren(parser_t *parser, shunt *sy)
 static void parser_reclassify_token(parser_t *parser)
 {
     size_t i;
+    if (parser->tok >= TOKEN_START)
+        return;
     for (i = 0; i < operator_count; ++i) {
         if (!strcmp(parser_tokval(parser), operators[i].op)) {
             parser->tok = TOKEN_OPERATOR;