Skip to content

Commit

Permalink
fix: use u32 for parsing Linux partition blocks (#2234)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpnh authored Jan 22, 2025
1 parent 1f4d0ea commit 4569356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yazi-fs/src/mounts/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 4569356

Please sign in to comment.