mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
fix: use u64 for parsing Linux partition blocks (#3873)
This commit is contained in:
parent
9abbc12212
commit
80a54c3dd5
5 changed files with 29 additions and 29 deletions
|
|
@ -66,7 +66,7 @@ impl Partitions {
|
|||
let mut it = line.split_whitespace();
|
||||
let Some(Ok(_major)) = it.next().map(|s| s.parse::<u16>()) else { continue };
|
||||
let Some(Ok(_minor)) = it.next().map(|s| s.parse::<u16>()) else { continue };
|
||||
let Some(Ok(_blocks)) = it.next().map(|s| s.parse::<u32>()) else { continue };
|
||||
let Some(Ok(_blocks)) = it.next().map(|s| s.parse::<u64>()) else { continue };
|
||||
if let Some(name) = it.next() {
|
||||
set.insert(Self::unmangle_octal(name).into_owned());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue