1
Fork 0
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:
Michael Gehring 2015-02-22 10:23:29 +01:00
parent 09b1162912
commit 80f9ef08d2
4 changed files with 11 additions and 11 deletions

View file

@ -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
}