mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use int64_t instead of mrb_int in int64_value.
This commit is contained in:
+1
-1
@@ -421,7 +421,7 @@ value_int64(mrb_state *mrb, mrb_value x)
|
||||
static mrb_value
|
||||
int64_value(mrb_state *mrb, int64_t v)
|
||||
{
|
||||
if (FIXABLE(v)) {
|
||||
if (TYPED_FIXABLE(v,int64_t)) {
|
||||
return mrb_fixnum_value((mrb_int)v);
|
||||
}
|
||||
return mrb_float_value(mrb, (mrb_float)v);
|
||||
|
||||
Reference in New Issue
Block a user