From 6c442d13a950337661d5cbb8dbbb35bdfa1d0415 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 27 Aug 2024 08:37:10 -0600 Subject: [PATCH] redox: relax type requirement for tv_nsec, fixing x86 32-bit (#104) --- src/redox.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redox.rs b/src/redox.rs index 3b96465..7d1a6ea 100644 --- a/src/redox.rs +++ b/src/redox.rs @@ -84,7 +84,7 @@ fn set_file_times_redox(fd: usize, atime: FileTime, mtime: FileTime) -> io::Resu fn to_timespec(ft: &FileTime) -> TimeSpec { TimeSpec { tv_sec: ft.seconds(), - tv_nsec: ft.nanoseconds() as i64, + tv_nsec: ft.nanoseconds() as _, } }