mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +00:00
reclassify_token should only deal with tokens < TOKEN_START... should fix #113
This commit is contained in:
parent
7115176c0e
commit
f8db5a7c6d
1 changed files with 2 additions and 0 deletions
2
parser.c
2
parser.c
|
@ -1690,6 +1690,8 @@ static bool parser_close_paren(parser_t *parser, shunt *sy)
|
||||||
static void parser_reclassify_token(parser_t *parser)
|
static void parser_reclassify_token(parser_t *parser)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
if (parser->tok >= TOKEN_START)
|
||||||
|
return;
|
||||||
for (i = 0; i < operator_count; ++i) {
|
for (i = 0; i < operator_count; ++i) {
|
||||||
if (!strcmp(parser_tokval(parser), operators[i].op)) {
|
if (!strcmp(parser_tokval(parser), operators[i].op)) {
|
||||||
parser->tok = TOKEN_OPERATOR;
|
parser->tok = TOKEN_OPERATOR;
|
||||||
|
|
Loading…
Reference in a new issue