Add explicit cast to silence warnings on AppVeyor.
MODIFY
mrbgems/mruby-method/src/method.c
mrbgems/mruby-method/src/method.c
@@ -110,7 +110,7 @@ method_eql(mrb_state *mrb, mrb_value self)
static mrb_value
mcall(mrb_state *mrb, mrb_value recv, mrb_value proc, mrb_value name, struct RClass *owner,
- int argc, mrb_value *argv, mrb_value block)
+ mrb_int argc, mrb_value *argv, mrb_value block)
{
mrb_value ret;
mrb_sym orig_mid = mrb->c->ci->mid;

MODIFY
mrbgems/mruby-rational/src/rational.c
mrbgems/mruby-rational/src/rational.c
@@ -112,7 +112,7 @@ rational_s_new(mrb_state *mrb, mrb_value self)
mrb_float denomf = mrb_to_flo(mrb, denomv);
DROP_PRECISION(denomf < MRB_INT_MIN || denomf > MRB_INT_MAX, numerator, denomf);
- denominator = denomf;
+ denominator = (mrb_int)denomf;
}
}
else {
@@ -125,11 +125,11 @@ rational_s_new(mrb_state *mrb, mrb_value self)
mrb_float denomf = mrb_to_flo(mrb, denomv);
DROP_PRECISION(denomf < MRB_INT_MIN || denomf > MRB_INT_MAX, numf, denomf);
- denominator = denomf;
+ denominator = (mrb_int)denomf;
}
DROP_PRECISION(numf < MRB_INT_MIN || numf > MRB_INT_MAX, numf, denominator);
- numerator = numf;
+ numerator = (mrb_int)numf;
}
#endif

Add explicit cast to silence warnings on AppVeyor.