mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove dependency to SIZEOF_INT
This commit is contained in:
+1
-1
@@ -985,7 +985,7 @@ mrb_num2fix(mrb_state *mrb, mrb_value val)
|
||||
|
||||
v = mrb_num2long(mrb, val);
|
||||
if (!FIXABLE(v))
|
||||
mrb_raise(mrb, E_RANGE_ERROR, "integer %"PRIdVALUE " out of range of fixnum", v);
|
||||
mrb_raise(mrb, E_RANGE_ERROR, "integer %ld out of range of fixnum", v);
|
||||
return mrb_fixnum_value(v);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user