Skip to content

Commit 2ee45c9

Browse files
committed
Fix cast of stx_btime.tv_nsec
1 parent 15cb3e0 commit 2ee45c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ impl FileAttr {
310310
return if (ext.stx_mask & libc::STATX_BTIME) != 0 {
311311
Ok(SystemTime::from(libc::timespec {
312312
tv_sec: ext.stx_btime.tv_sec as libc::time_t,
313-
tv_nsec: ext.stx_btime.tv_nsec as libc::c_long,
313+
tv_nsec: ext.stx_btime.tv_nsec as _,
314314
}))
315315
} else {
316316
Err(io::Error::new(

0 commit comments

Comments
 (0)