mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 07:43:18 +08:00
Fix format string presumably broken under i686
%ld expects a 32-bit param under x86, change it to %lld instead.
This commit is contained in:
parent
476b360eb8
commit
2d2b75003d
|
@ -1292,7 +1292,7 @@ pub fn format_size(mut sz: i64) -> WString {
|
|||
if sz < (1024 * 1024) || i == sz_names.len() - 1 {
|
||||
let isz = sz / 1024;
|
||||
if isz > 9 {
|
||||
result += &sprintf!("%ld%ls", isz, *sz_name)[..];
|
||||
result += &sprintf!("%lld%ls", isz, *sz_name)[..];
|
||||
} else {
|
||||
result += &sprintf!("%.1f%ls", sz as f64 / 1024.0, *sz_name)[..];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user