errno.c: use `mrb_fixnum_p()` instead of `mrb_type()`.

parent 6744d69d
......@@ -20,7 +20,7 @@ mrb_sce_init(mrb_state *mrb, mrb_value self)
argc = mrb_get_args(mrb, "o|i", &m, &n);
if (argc == 1) {
if (mrb_type(m) == MRB_TT_FIXNUM) {
if (mrb_fixnum_p(m)) {
n = mrb_fixnum(m);
m = mrb_nil_value();
} else {
......
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