Fixed VC fstat issue.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-08-11 16:34:56 +09:00
parent cfaaf7c6d4
commit 3b8df2c285
+1 -1
View File
@@ -395,7 +395,7 @@ static mrb_value
mrb_file_mtime(mrb_state *mrb, mrb_value self)
{
int fd = mrb_io_fileno(mrb, self);
struct stat st;
mrb_stat st;
if (mrb_fstat(fd, &st) == -1)
return mrb_false_value();