diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-03 00:14:37 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-03 00:14:37 +0900 |
| commit | e35c3aff83d400dfe27fe105b7e282ac81b1197a (patch) | |
| tree | 3b7de0cdd204c7898d5abc60cedd19deae79744a /mrbgems/mruby-sprintf/src/sprintf.c | |
| parent | 3a462fe4687fa2a52d2c9c20d10ae46901292b99 (diff) | |
| download | mruby-e35c3aff83d400dfe27fe105b7e282ac81b1197a.tar.gz mruby-e35c3aff83d400dfe27fe105b7e282ac81b1197a.zip | |
unsigned long may be smaller than mrb_int; use uint64_t instead; fix #2935
Diffstat (limited to 'mrbgems/mruby-sprintf/src/sprintf.c')
| -rw-r--r-- | mrbgems/mruby-sprintf/src/sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-sprintf/src/sprintf.c b/mrbgems/mruby-sprintf/src/sprintf.c index de216f69f..81b48b10d 100644 --- a/mrbgems/mruby-sprintf/src/sprintf.c +++ b/mrbgems/mruby-sprintf/src/sprintf.c @@ -73,7 +73,7 @@ mrb_fix2binstr(mrb_state *mrb, mrb_value x, int base) { char buf[64], *b = buf + sizeof buf; mrb_int num = mrb_fixnum(x); - unsigned long val = (unsigned long)num; + uint64_t val = (uint64_t)num; char d; if (base != 2) { |
