From: Wolfgang Bumiller Date: Sun, 16 Jun 2013 07:52:49 +0000 (+0200) Subject: reclassify_token should only deal with tokens < TOKEN_START... should fix #113 X-Git-Tag: v0.3.0~105^2~1^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f8db5a7c6d0ba2e5e9624e1de46bb2da9572bb32;p=xonotic%2Fgmqcc.git reclassify_token should only deal with tokens < TOKEN_START... should fix #113 --- diff --git a/parser.c b/parser.c index 2a0e7b7..cbae8d3 100644 --- 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;