From: fennecdjay Date: Mon, 7 Oct 2019 19:57:37 +0000 (+0200) Subject: :bug: Fix vararg usage X-Git-Tag: nightly~2198^2~124 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=00743be6cf5ce403bb20b1d362a2cecf53f6a5f2;p=gwion.git :bug: Fix vararg usage --- diff --git a/src/lib/vararg.c b/src/lib/vararg.c index 40d4a388..35d0fca7 100644 --- a/src/lib/vararg.c +++ b/src/lib/vararg.c @@ -89,7 +89,7 @@ static FREEARG(freearg_vararg) { } static ID_CHECK(idck_vararg) { - if(SAFE_FLAG(env->func, variadic)) + if(env->func && GET_FLAG(env->func->def, variadic)) return env->gwion->type[et_vararg]; ERR_O(exp_self(prim)->pos, _("'vararg' must be used inside variadic function")) }