diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-06-04 10:04:08 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:20:59 +0900 |
| commit | b67955b8caeff907e577005ffedc6553db5415cc (patch) | |
| tree | 3fd60f4fb0c10c042480e3093b919b7db7bad3a0 /src/vm.c | |
| parent | 2a366ffba8397c6f848d659dce76e03e1bf05d17 (diff) | |
| download | mruby-b67955b8caeff907e577005ffedc6553db5415cc.tar.gz mruby-b67955b8caeff907e577005ffedc6553db5415cc.zip | |
Change the arguments of following implicit conversion functions:
- `mrb_convert_type`
- `mrb_check_convert_type`
Those function no longer take `tname` string representation of desired
type, and take method symbols instead of `const char*` names. This is
incompatible change. I hope no third-party gems use those functions.
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1375,7 +1375,7 @@ RETRY_TRY_BLOCK: recv = regs[a]; blk = regs[bidx]; if (!mrb_nil_p(blk) && !mrb_proc_p(blk)) { - blk = mrb_convert_type(mrb, blk, MRB_TT_PROC, "Proc", "to_proc"); + blk = mrb_convert_type(mrb, blk, MRB_TT_PROC, MRB_SYM(to_proc)); /* The stack might have been reallocated during mrb_convert_type(), see #3622 */ regs[bidx] = blk; @@ -1557,7 +1557,7 @@ RETRY_TRY_BLOCK: } blk = regs[bidx]; if (!mrb_nil_p(blk) && !mrb_proc_p(blk)) { - blk = mrb_convert_type(mrb, blk, MRB_TT_PROC, "Proc", "to_proc"); + blk = mrb_convert_type(mrb, blk, MRB_TT_PROC, MRB_SYM(to_proc)); /* The stack or ci stack might have been reallocated during mrb_convert_type(), see #3622 and #3784 */ regs[bidx] = blk; |
