diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-31 14:19:15 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-08-31 14:19:15 +0900 |
| commit | ad5c408c7bbb782ddda1bbc16fe8e19c6ac2e9fd (patch) | |
| tree | d4dc9d3609730dae4922cc79848e60422a6c823c /src | |
| parent | fee7a55381cfd54c1eae709a0569be08ec0caa16 (diff) | |
| download | mruby-ad5c408c7bbb782ddda1bbc16fe8e19c6ac2e9fd.tar.gz mruby-ad5c408c7bbb782ddda1bbc16fe8e19c6ac2e9fd.zip | |
revert #1470; fix #1493
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -902,7 +902,12 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self) else { ci->argc = n; } - ci->target_class = c; + if (c->tt == MRB_TT_ICLASS) { + ci->target_class = c->c; + } + else { + ci->target_class = c; + } ci->pc = pc + 1; ci->acc = a; |
