From 046dc2105f2b7ccedecbed90f4dee1404e6a6831 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 15 Dec 2022 14:42:32 +0100 Subject: [PATCH] :bug: improve internal_args --- src/parse/scan1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.43.0