Skip to content

Commit

Permalink
🎨 update
Browse files Browse the repository at this point in the history
  • Loading branch information
fennecdjay committed Mar 11, 2024
1 parent 66b73f1 commit a6d050c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fmt
6 changes: 3 additions & 3 deletions src/parse/check.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion src/parse/scan1.c
Expand Up @@ -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;
Expand Down

0 comments on commit a6d050c

Please sign in to comment.