Skip to content

Commit

Permalink
Merge pull request #6249 from jbampton/fix-grammar
Browse files Browse the repository at this point in the history
Fix grammar in `src/vm.c`; `catched` -> `caught`
  • Loading branch information
matz committed Apr 22, 2024
2 parents 9c2fa62 + f9c2ea2 commit 34c8e82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vm.c
Expand Up @@ -1438,13 +1438,13 @@ mrb_vm_exec(mrb_state *mrb, const struct RProc *proc, const mrb_code *pc)
};
#endif

volatile mrb_bool exc_catched = FALSE;
volatile mrb_bool exc_caught = FALSE;
RETRY_TRY_BLOCK:

MRB_TRY(&c_jmp) {

if (exc_catched) {
exc_catched = FALSE;
if (exc_caught) {
exc_caught = FALSE;
mrb_gc_arena_restore(mrb, ai);
if (mrb->exc && mrb->exc->tt == MRB_TT_BREAK)
goto L_BREAK;
Expand Down Expand Up @@ -3136,7 +3136,7 @@ mrb_vm_exec(mrb_state *mrb, const struct RProc *proc, const mrb_code *pc)
while (ci > mrb->c->cibase && ci->cci == CINFO_DIRECT) {
ci = cipop(mrb);
}
exc_catched = TRUE;
exc_caught = TRUE;
pc = ci->pc;
goto RETRY_TRY_BLOCK;
}
Expand Down

0 comments on commit 34c8e82

Please sign in to comment.