mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +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;
|
||||
}
|
||||
|
||||
if (sy->ops[vec_size(sy->ops)-1].paren) {
|
||||
if (vec_last(sy->ops).paren) {
|
||||
parseerror(parser, "unmatched parenthesis");
|
||||
return false;
|
||||
}
|
||||
|
||||
op = &operators[sy->ops[vec_size(sy->ops)-1].etype - 1];
|
||||
ctx = sy->ops[vec_size(sy->ops)-1].ctx;
|
||||
op = &operators[vec_last(sy->ops).etype - 1];
|
||||
ctx = vec_last(sy->ops).ctx;
|
||||
|
||||
DEBUGSHUNTDO(con_out("apply %s\n", op->op));
|
||||
|
||||
|
|
Loading…
Reference in a new issue