From: fennecdjay Date: Thu, 15 Dec 2022 13:42:32 +0000 (+0100) Subject: :bug: improve internal_args X-Git-Tag: nightly~207^2~37 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=046dc2105f2b7ccedecbed90f4dee1404e6a6831;p=gwion.git :bug: improve internal_args --- diff --git a/src/parse/scan1.c b/src/parse/scan1.c index 145bc616..a537a7da 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -583,7 +583,7 @@ ANN static m_bool class_internal(const Env env, const Func_Base *base) { ANN static inline m_bool scan_internal_arg(const Env env, const Func_Base *base) { - if (base->args->len == 1) return GW_OK; + if (mp_vector_len(base->args) == 1) return GW_OK; assert(base->td); ERR_B(base->td->pos, _("'%s' must have one (and only one) argument"), s_name(base->xid))