From: Wolfgang Bumiller Date: Sat, 12 Jan 2013 12:52:42 +0000 (+0100) Subject: builtins are generally not declared const, so don't expect CV_CONST, otherwise we... X-Git-Tag: before-library~291 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1861660585a9c0f786ccb8887ef109dfb1e034b2;p=xonotic%2Fgmqcc.git builtins are generally not declared const, so don't expect CV_CONST, otherwise we write out va_count for builtin calls as well... --- diff --git a/parser.c b/parser.c index 2fc6510..a245e89 100644 --- a/parser.c +++ b/parser.c @@ -1426,7 +1426,7 @@ static bool parser_close_call(parser_t *parser, shunt *sy) if (ast_istype(fun, ast_value)) { funval = (ast_value*)fun; if ((fun->expression.flags & AST_FLAG_VARIADIC) && - !(funval->cvq == CV_CONST && funval->hasvalue && funval->constval.vfunc->builtin)) + !(/*funval->cvq == CV_CONST && */ funval->hasvalue && funval->constval.vfunc->builtin)) { size_t va_count; if (paramcount < vec_size(fun->expression.params))