From 00743be6cf5ce403bb20b1d362a2cecf53f6a5f2 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 7 Oct 2019 21:57:37 +0200 Subject: [PATCH] :bug: Fix vararg usage --- src/lib/vararg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) } -- 2.43.0