Commit 7917b7f8 authored by Yusuke Endoh's avatar Yusuke Endoh

Support MRB_WITHOUT_FLOAT to mruby-io

parent adb1eae9
......@@ -345,7 +345,11 @@ mrb_file_mtime(mrb_state *mrb, mrb_value self)
fd = (int)mrb_fixnum(mrb_io_fileno(mrb, self));
if (fstat(fd, &st) == -1)
return mrb_false_value();
#ifndef MRB_WITHOUT_FLOAT
return mrb_funcall(mrb, obj, "at", 1, mrb_float_value(mrb, st.st_mtime));
#else
return mrb_funcall(mrb, obj, "at", 1, mrb_fixnum_value(st.st_mtime));
#endif
}
mrb_value
......
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