Permalink
Browse files

Adjust ridx if `mrb_yield` terminated by `break`; fix #3686

This issue is related to #3640.
  • Loading branch information...
matz committed Jun 2, 2017
1 parent 51e0e69 commit 079f310fbc9c23b97f062230c32bd91ac65e4835
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/vm.c
View
@@ -283,8 +283,8 @@ cipop(mrb_state *mrb)
struct mrb_context *c = mrb->c;
struct REnv *env = c->ci->env;
c->ridx = c->ci->rpos;
c->ci--;
if (env) {
mrb_env_unshare(mrb, env);
}

0 comments on commit 079f310

Please sign in to comment.