From a6d050c50236f2001d167da8664c1f3c23de586f Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 11 Mar 2024 18:41:28 +0100 Subject: [PATCH] :art: update --- fmt | 2 +- src/parse/check.c | 6 +++--- src/parse/scan1.c | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fmt b/fmt index 16503e30..8cb7034b 160000 --- a/fmt +++ b/fmt @@ -1 +1 @@ -Subproject commit 16503e30235be57175d6ee2645bbbadb44ac1f98 +Subproject commit 8cb7034b9fc3e281a6451f8e7c5d98b159d4a2a4 diff --git a/src/parse/check.c b/src/parse/check.c index 57f8c1ae..de438031 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -40,9 +40,9 @@ ANN bool check_implicit(const Env env, Exp* e, const Type t) { ANN bool check_subscripts(Env env, const Array_Sub array, const bool is_decl) { - CHECK_B(check_exp(env, array->exp)); - m_uint depth = 0; Exp* e = array->exp; + CHECK_B(check_exp(env, e)); + m_uint depth = 0; bool ok = true; do { if (is_decl) { @@ -519,7 +519,7 @@ ANN Type check_array_access(const Env env, const Array_Sub array) { static ANN Type check_exp_array(const Env env, const Exp_Array *array) { CHECK_O((array->array->type = check_exp(env, array->base))); - CHECK_O(check_subscripts(env, array->array, 0)); + CHECK_O(check_subscripts(env, array->array, false)); if(exp_getmeta(array->base)) exp_setmeta(exp_self(array), true); return check_array_access(env, array->array); } diff --git a/src/parse/scan1.c b/src/parse/scan1.c index a9f75ee5..094f1784 100644 --- a/src/parse/scan1.c +++ b/src/parse/scan1.c @@ -438,7 +438,6 @@ ANN static bool scan1_args(const Env env, Arg_List args) { POISON(ok, env); } if (arg->var.td) { - SET_FLAG(arg->var.td, late); if(!(arg->type = void_type(env, arg->var.td))) { POISON(ok, env); continue; -- 2.43.0