Jeremy Soller 6 лет назад
Родитель
Сommit
bc7f7356b9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/platform/src/redox/mod.rs

+ 1 - 1
src/platform/src/redox/mod.rs

@@ -286,7 +286,7 @@ pub fn utimens(path: *const c_char, times: *const timespec) -> c_int {
     match syscall::open(path, O_STAT) {
         Err(err) => e(Err(err)) as c_int,
         Ok(fd) => {
-            let res = futimens(fd, times);
+            let res = futimens(fd as c_int, times);
             let _ = syscall::close(fd);
             res
         }