mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
Utilizing vec_last more
This commit is contained in:
parent
5ec75a228e
commit
90bd91e294
1 changed files with 3 additions and 3 deletions
6
parser.c
6
parser.c
|
@ -423,13 +423,13 @@ static bool parser_sy_pop(parser_t *parser, shunt *sy)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sy->ops[vec_size(sy->ops)-1].paren) {
|
if (vec_last(sy->ops).paren) {
|
||||||
parseerror(parser, "unmatched parenthesis");
|
parseerror(parser, "unmatched parenthesis");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
op = &operators[sy->ops[vec_size(sy->ops)-1].etype - 1];
|
op = &operators[vec_last(sy->ops).etype - 1];
|
||||||
ctx = sy->ops[vec_size(sy->ops)-1].ctx;
|
ctx = vec_last(sy->ops).ctx;
|
||||||
|
|
||||||
DEBUGSHUNTDO(con_out("apply %s\n", op->op));
|
DEBUGSHUNTDO(con_out("apply %s\n", op->op));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue