Browse Source

Fix redox futimens fd type

Jeremy Soller 6 years ago
parent
commit
bc7f7356b9
1 changed files with 1 additions and 1 deletions
  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
         }