summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io/src/file.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-08-13 23:11:34 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-08-25 09:19:17 +0900
commita16885efe5125944316b48c644c3a9eae2fc568e (patch)
treeae6ad17b4f9af7ed725736fb8931e7d3101c629c /mrbgems/mruby-io/src/file.c
parent31827189ab98a4e51c84772fd782627fc8feb8cc (diff)
downloadmruby-a16885efe5125944316b48c644c3a9eae2fc568e.tar.gz
mruby-a16885efe5125944316b48c644c3a9eae2fc568e.zip
Try to fix a fragile `File#mtime` test.
Diffstat (limited to 'mrbgems/mruby-io/src/file.c')
-rw-r--r--mrbgems/mruby-io/src/file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c
index ca21256cc..e65741061 100644
--- a/mrbgems/mruby-io/src/file.c
+++ b/mrbgems/mruby-io/src/file.c
@@ -345,11 +345,7 @@ 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