Unverified Commit 2005bf99 authored by ksss's avatar ksss

Should use mrb_int for any object

o=Object.new
def o.to_int
  1
end
p "%*d" % [o, 1]
parent fa502b49
......@@ -221,7 +221,7 @@ check_name_arg(mrb_state *mrb, int posarg, const char *name, int len)
tmp_v = GETNEXTARG(); \
p = t; \
} \
num = mrb_fixnum(tmp_v); \
num = mrb_int(mrb, tmp_v); \
} while (0)
static mrb_value
......
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