Merge pull request #3526 from ksss/sprintf

sprintf: Should use mrb_int for any object
This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-03-18 23:30:35 +09:00
committed by GitHub
+1 -1
View File
@@ -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