Commit 885916c8 authored by Tomasz Dąbrowski's avatar Tomasz Dąbrowski Committed by Tomasz Dabrowski

fix: src\vm.c(708): warning C4244: '=': conversion from 'mrb_int' to 'int', possible loss of data

parent e88fc106
......@@ -705,7 +705,7 @@ mrb_yield_with_class(mrb_state *mrb, mrb_value b, mrb_int argc, const mrb_value
ci->target_class = c;
ci->acc = CI_ACC_SKIP;
mrb->c->stack = mrb->c->stack + n;
ci->nregs = MRB_PROC_CFUNC_P(p) ? argc+2 : p->body.irep->nregs;
ci->nregs = MRB_PROC_CFUNC_P(p) ? (int)(argc+2) : p->body.irep->nregs;
stack_extend(mrb, ci->nregs);
mrb->c->stack[0] = self;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment