mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-21 04:31:13 +00:00
various integer type changes
This commit is contained in:
parent
09b1162912
commit
80f9ef08d2
4 changed files with 11 additions and 11 deletions
|
|
@ -243,7 +243,7 @@ fn num_prefix(i: usize, width: usize) -> String {
|
|||
let div = Int::pow(10 as usize, w);
|
||||
let r = n / div;
|
||||
n -= r * div;
|
||||
c.push(char::from_digit(r, 10).unwrap());
|
||||
c.push(char::from_digit(r as u32, 10).unwrap());
|
||||
}
|
||||
c
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue