mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
unsigned long may be smaller than mrb_int; use uint64_t instead; fix #2935
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user