From 1861660585a9c0f786ccb8887ef109dfb1e034b2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sat, 12 Jan 2013 13:52:42 +0100 Subject: [PATCH] builtins are generally not declared const, so don't expect CV_CONST, otherwise we write out va_count for builtin calls as well... --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.39.2