From: Wolfgang Bumiller Date: Tue, 7 May 2013 18:13:19 +0000 (+0200) Subject: be more strict here X-Git-Tag: v0.3.0~151^2~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=802005f57192f91b73871d48ce8c4b0b64bd6ad1;p=xonotic%2Fgmqcc.git be more strict here --- diff --git a/parser.c b/parser.c index 6ad5502..c95ff91 100644 --- a/parser.c +++ b/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;