mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: use u32 for parsing Linux partition blocks (#2234)
This commit is contained in:
parent
1f4d0eafb5
commit
456935658a
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,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::<u16>()) else { continue };
|
||||
let Some(Ok(_blocks)) = it.next().map(|s| s.parse::<u32>()) else { continue };
|
||||
if let Some(name) = it.next() {
|
||||
set.insert(Self::unmangle_octal(name).into_owned());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue