]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix vararg usage
authorfennecdjay <astor.jeremie@wanadoo.fr>
Mon, 7 Oct 2019 19:57:37 +0000 (21:57 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Mon, 7 Oct 2019 19:57:37 +0000 (21:57 +0200)
src/lib/vararg.c

index 40d4a388538c31c9819f71ef6f7da2d03bf3e2c8..35d0fca7e3b95a89dd37d3333a2fdd0315c5fe61 100644 (file)
@@ -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"))
 }