mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 12:00:38 +00:00
builtins are generally not declared const, so don't expect CV_CONST, otherwise we write out va_count for builtin calls as well...
This commit is contained in:
parent
c10d127fd7
commit
1861660585
1 changed files with 1 additions and 1 deletions
2
parser.c
2
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))
|
||||
|
|
Loading…
Reference in a new issue