Skip to content

Commit

Permalink
flambda-backend: Fix extern_closure_up_to_env (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshinwell authored Jan 10, 2023
1 parent bc2c78d commit 50a9ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/extern.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,8 @@ Caml_inline mlsize_t extern_closure_up_to_env(value v)
if (Arity_closinfo(info) != 0 && Arity_closinfo(info) != 1) {
extern_code_pointer((char *) Field(v, i++));
}
} while (i < startenv);
CAMLassert(i == startenv);
} while (!Is_last_closinfo(info));
CAMLassert(i <= startenv);
return startenv;
}
#endif
Expand Down

0 comments on commit 50a9ce0

Please sign in to comment.