From 305208d28f31eaa6772c8a2b75a09551706eda1f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 7 Apr 2021 00:53:27 +0200 Subject: [PATCH] :art: Update --- src/parse/check.c | 2 +- src/parse/template.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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) -- 2.43.0