From: Wolfgang Bumiller Date: Fri, 20 Jul 2012 13:02:49 +0000 (+0200) Subject: working on operator translation X-Git-Tag: 0.1-rc1~409 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9f54ea66438a391253d3b3d0437ca14712710269;p=xonotic%2Fgmqcc.git working on operator translation --- diff --git a/parser.c b/parser.c index acbba21..170e332 100644 --- a/parser.c +++ b/parser.c @@ -209,6 +209,10 @@ static sy_elem syop(const oper_info *op) { static bool parser_sy_pop(parser_t *parser, shynt *sy) { + if (!sy->ops_count) { + parseerror(parser, "internal error: missing operator"); + return false; + } return true; }