Qualify mrb_yield_*'s argv const.

This commit is contained in:
take_cheeze
2014-04-10 17:34:38 +09:00
parent 847b7c5e19
commit 9f24cd6d79
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -487,7 +487,7 @@ mrb_f_send(mrb_state *mrb, mrb_value self)
}
mrb_value
mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv, mrb_value self, struct RClass *c)
mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, const mrb_value *argv, mrb_value self, struct RClass *c)
{
struct RProc *p;
mrb_sym mid = mrb->c->ci->mid;
@@ -533,7 +533,7 @@ mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv, mrb
}
mrb_value
mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv)
mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, const mrb_value *argv)
{
struct RProc *p = mrb_proc_ptr(b);