Skip to content
Permalink
Browse files
int64_value(): use FIXABLE()
  • Loading branch information
matz committed Nov 22, 2016
1 parent fb77765 commit 8cba708854205ab8f2b6f8aed9aff12085131f12
Showing 1 changed file with 1 addition and 1 deletion.
@@ -291,7 +291,7 @@ value_int64(mrb_state *mrb, mrb_value x)
static mrb_value
int64_value(mrb_state *mrb, int64_t v)
{
if (MRB_INT_MIN <= v && v <= MRB_INT_MAX) {
if (FIXABLE(v)) {
return mrb_fixnum_value((mrb_int)v);
}
return mrb_float_value(mrb, (mrb_float)v);

0 comments on commit 8cba708

Please sign in to comment.