Commit ce869752 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #3526 from ksss/sprintf

sprintf: Should use mrb_int for any object
parents fa502b49 2005bf99
...@@ -221,7 +221,7 @@ check_name_arg(mrb_state *mrb, int posarg, const char *name, int len) ...@@ -221,7 +221,7 @@ check_name_arg(mrb_state *mrb, int posarg, const char *name, int len)
tmp_v = GETNEXTARG(); \ tmp_v = GETNEXTARG(); \
p = t; \ p = t; \
} \ } \
num = mrb_fixnum(tmp_v); \ num = mrb_int(mrb, tmp_v); \
} while (0) } while (0)
static mrb_value 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