mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-21 19:45:11 +00:00
Use unsigned_abs
instead of casting from i64 to u64
This commit is contained in:
parent
2917062466
commit
7595289698
@ -375,7 +375,7 @@ impl<'dir> File<'dir> {
|
||||
nanosec -= 1_000_000_000;
|
||||
}
|
||||
|
||||
let duration = Duration::new(sec.abs() as u64, nanosec.abs() as u32);
|
||||
let duration = Duration::new(sec.unsigned_abs(), nanosec.unsigned_abs() as u32);
|
||||
Some(UNIX_EPOCH - duration)
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user