mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user