Rollup merge of #22339 - petrochenkov:int, r=huonw

Some function signatures have changed, so this is a [breaking-change].
In particular, radixes and numerical values of digits are represented by `u32` now.

Part of #22240
This commit is contained in:
Manish Goregaokar
2015-02-15 18:34:18 +05:30
17 changed files with 179 additions and 178 deletions

View File

@@ -645,7 +645,7 @@ impl<'a> StringReader<'a> {
/// Scan through any digits (base `radix`) or underscores, and return how
/// many digits there were.
fn scan_digits(&mut self, radix: usize) -> usize {
fn scan_digits(&mut self, radix: u32) -> usize {
let mut len = 0;
loop {
let c = self.curr;