Add explicit cast to silence warnings on AppVeyor.

parent 41f3456a
...@@ -110,7 +110,7 @@ method_eql(mrb_state *mrb, mrb_value self) ...@@ -110,7 +110,7 @@ method_eql(mrb_state *mrb, mrb_value self)
static mrb_value static mrb_value
mcall(mrb_state *mrb, mrb_value recv, mrb_value proc, mrb_value name, struct RClass *owner, 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_value ret;
mrb_sym orig_mid = mrb->c->ci->mid; mrb_sym orig_mid = mrb->c->ci->mid;
......
...@@ -112,7 +112,7 @@ rational_s_new(mrb_state *mrb, mrb_value self) ...@@ -112,7 +112,7 @@ rational_s_new(mrb_state *mrb, mrb_value self)
mrb_float denomf = mrb_to_flo(mrb, denomv); mrb_float denomf = mrb_to_flo(mrb, denomv);
DROP_PRECISION(denomf < MRB_INT_MIN || denomf > MRB_INT_MAX, numerator, denomf); DROP_PRECISION(denomf < MRB_INT_MIN || denomf > MRB_INT_MAX, numerator, denomf);
denominator = denomf; denominator = (mrb_int)denomf;
} }
} }
else { else {
...@@ -125,11 +125,11 @@ rational_s_new(mrb_state *mrb, mrb_value self) ...@@ -125,11 +125,11 @@ rational_s_new(mrb_state *mrb, mrb_value self)
mrb_float denomf = mrb_to_flo(mrb, denomv); mrb_float denomf = mrb_to_flo(mrb, denomv);
DROP_PRECISION(denomf < MRB_INT_MIN || denomf > MRB_INT_MAX, numf, denomf); 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); DROP_PRECISION(numf < MRB_INT_MIN || numf > MRB_INT_MAX, numf, denominator);
numerator = numf; numerator = (mrb_int)numf;
} }
#endif #endif
......
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