From: Jérémie Astor Date: Tue, 6 Apr 2021 22:53:27 +0000 (+0200) Subject: :art: Update X-Git-Tag: nightly~758 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=305208d28f31eaa6772c8a2b75a09551706eda1f;p=gwion.git :art: Update --- diff --git a/src/parse/check.c b/src/parse/check.c index d40451af..f5639c5c 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -170,7 +170,7 @@ ANN static m_bool prim_array_inner(const Env env, Type type, const Exp e, if(check_implicit(env, e, type) > 0) return GW_OK; - char fst[16 + strlen(type->name)]; + char fst[20 + strlen(type->name)]; sprintf(fst, "expected `{+/}%s{0}`", type->name); gwerr_basic(_("literal contains incompatible types"), fst, NULL, env->name, loc, 0); diff --git a/src/parse/template.c b/src/parse/template.c index b4190139..fe787642 100644 --- a/src/parse/template.c +++ b/src/parse/template.c @@ -122,7 +122,6 @@ ANN Type scan_type(const Env env, const Type t, Type_Decl* td) { envset_push(&es, owner, owner->nspc); (void)env_push(env, owner, owner->nspc);// TODO: is this needed? // const Type ret = scan_type(env, t, td->next); -printf("known %s\n", owner->name); const Type ret = known_type(env, td->next); env_pop(env, es.scope); if(es.run)