Use more `mrb_int_value()` instead of `mrb_fixnum_value()`.

parent 2e30c685
...@@ -455,7 +455,7 @@ mrb_file_size(mrb_state *mrb, mrb_value self) ...@@ -455,7 +455,7 @@ mrb_file_size(mrb_state *mrb, mrb_value self)
#endif #endif
} }
return mrb_fixnum_value((mrb_int)st.st_size); return mrb_int_value(mrb, (mrb_int)st.st_size);
} }
static int static int
......
...@@ -995,7 +995,7 @@ mrb_io_sysseek(mrb_state *mrb, mrb_value io) ...@@ -995,7 +995,7 @@ mrb_io_sysseek(mrb_state *mrb, mrb_value io)
mrb_raise(mrb, E_IO_ERROR, "sysseek reached too far for MRB_NO_FLOAT"); mrb_raise(mrb, E_IO_ERROR, "sysseek reached too far for MRB_NO_FLOAT");
#endif #endif
} else { } else {
return mrb_fixnum_value(pos); return mrb_int_value(mrb, pos);
} }
} }
...@@ -1022,7 +1022,7 @@ mrb_io_syswrite_common(mrb_state *mrb, ...@@ -1022,7 +1022,7 @@ mrb_io_syswrite_common(mrb_state *mrb,
mrb_sys_fail(mrb, 0); mrb_sys_fail(mrb, 0);
} }
return mrb_fixnum_value(length); return mrb_int_value(mrb, (mrb_int)length);
} }
static mrb_io_read_write_size static mrb_io_read_write_size
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment