summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-08-13 23:11:34 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-08-13 23:15:52 +0900
commitc095736002e72d8f00c2c09b0295d2630e4375c7 (patch)
treedb5fa3e822f22fbfa79c25062842823f6637241e /mrbgems/mruby-io/src
parent14206a75a37020a3a4926b1289a1f07277b78578 (diff)
downloadmruby-c095736002e72d8f00c2c09b0295d2630e4375c7.tar.gz
mruby-c095736002e72d8f00c2c09b0295d2630e4375c7.zip
Try to fix a fragile `File#mtime` test.
Diffstat (limited to 'mrbgems/mruby-io/src')
-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