mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Fix cast of stx_btime.tv_nsec
This commit is contained in:
parent
15cb3e08e3
commit
2ee45c9da2
@ -310,7 +310,7 @@ impl FileAttr {
|
||||
return if (ext.stx_mask & libc::STATX_BTIME) != 0 {
|
||||
Ok(SystemTime::from(libc::timespec {
|
||||
tv_sec: ext.stx_btime.tv_sec as libc::time_t,
|
||||
tv_nsec: ext.stx_btime.tv_nsec as libc::c_long,
|
||||
tv_nsec: ext.stx_btime.tv_nsec as _,
|
||||
}))
|
||||
} else {
|
||||
Err(io::Error::new(
|
||||
|
Loading…
Reference in New Issue
Block a user