mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
be more strict here
This commit is contained in:
parent
4d0a5af475
commit
802005f571
1 changed files with 2 additions and 2 deletions
4
parser.c
4
parser.c
|
@ -2227,8 +2227,8 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma
|
|||
}
|
||||
|
||||
parser->lex->flags.noops = true;
|
||||
if (!vec_size(sy.out)) {
|
||||
parseerror(parser, "empty expression");
|
||||
if (vec_size(sy.out) != 1) {
|
||||
parseerror(parser, "expression with not 1 but %lu output values...", (unsigned long) vec_size(sy.out));
|
||||
expr = NULL;
|
||||
} else
|
||||
expr = sy.out[0].out;
|
||||
|
|
Loading…
Reference in a new issue