]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
builtins are generally not declared const, so don't expect CV_CONST, otherwise we...
authorWolfgang Bumiller <blub@speed.at>
Sat, 12 Jan 2013 12:52:42 +0000 (13:52 +0100)
committerWolfgang Bumiller <blub@speed.at>
Sat, 12 Jan 2013 12:52:42 +0000 (13:52 +0100)
parser.c

index 2fc6510e7f7d25716c4e555cd3b86ab3d27b6aec..a245e89be73b070e2c258cd7f07c131b33910535 100644 (file)
--- 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))