Commit fcebd124 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1530 from h2so5/args-explicit-conversion

Disable implicit integer conversion in mrb_get_args
parents 3a6391c4 41de3d83
...@@ -580,12 +580,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...) ...@@ -580,12 +580,7 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
*p = 0; *p = 0;
break; break;
default: default:
{ *p = mrb_fixnum(mrb_Integer(mrb, *sp));
mrb_value tmp;
tmp = mrb_convert_type(mrb, *sp, MRB_TT_FIXNUM, "Integer", "to_int");
*p = mrb_fixnum(tmp);
}
break; break;
} }
sp++; sp++;
......
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