Unverified Commit 5bb3f60e authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4064 from mame/mrb_without_float-for-mruby-io

Support MRB_WITHOUT_FLOAT to mruby-io
parents adb1eae9 7917b7f8
......@@ -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