Use int64_t instead of mrb_int in int64_value.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-05-17 10:40:19 +09:00
parent 283530b19b
commit 80c789b394
+1 -1
View File
@@ -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);