summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-class-ext/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-01-12 22:14:53 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-01-12 22:14:53 +0900
commit9d950818ce9a35a9d11f6a95355cf1cda25f41cc (patch)
tree9b7912d7b859c3cb2ee026a48582934c7af5cd2c /mrbgems/mruby-class-ext/src
parente13f34e30866add2ec1829ec1819366844701c34 (diff)
parentbec4d30dc6620c4102ce7acc08a4cb1c735a6ad5 (diff)
downloadmruby-9d950818ce9a35a9d11f6a95355cf1cda25f41cc.tar.gz
mruby-9d950818ce9a35a9d11f6a95355cf1cda25f41cc.zip
Merge branch 'dearblue-reorganize-ci'
Diffstat (limited to 'mrbgems/mruby-class-ext/src')
-rw-r--r--mrbgems/mruby-class-ext/src/class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-class-ext/src/class.c b/mrbgems/mruby-class-ext/src/class.c
index b7b5e18f8..39c16fc48 100644
--- a/mrbgems/mruby-class-ext/src/class.c
+++ b/mrbgems/mruby-class-ext/src/class.c
@@ -1,6 +1,7 @@
#include "mruby.h"
#include "mruby/class.h"
#include "mruby/string.h"
+#include "mruby/proc.h"
static mrb_value
mrb_mod_name(mrb_state *mrb, mrb_value self)
@@ -51,7 +52,7 @@ mrb_mod_module_exec(mrb_state *mrb, mrb_value self)
if (mrb->c->ci->acc < 0) {
return mrb_yield_with_class(mrb, blk, argc, argv, self, c);
}
- mrb->c->ci->target_class = c;
+ mrb_vm_ci_target_class_set(mrb->c->ci, c);
return mrb_yield_cont(mrb, blk, self, argc, argv);
}