diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-01-24 21:47:57 +0100 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-02-03 15:37:24 -0800 |
| commit | eb194621044253fae32649511d76515a64009a53 (patch) | |
| tree | a23632e8039ccea8f82d6e1ca2c09f8b82193494 /src/libstd/bigint.rs | |
| parent | 26e72bf92bb0f9cf4d10a5edb07dbbd5c09f0e24 (diff) | |
| download | rust-eb194621044253fae32649511d76515a64009a53.tar.gz rust-eb194621044253fae32649511d76515a64009a53.zip | |
Converted libcore/uint-template.rs to the new string functions.
- Moved ToStr implementation of unsigned integers to uint-template.rs. - Marked the `str()` function as deprecated. - Forwarded all conversion functions to `core::num::to_str_common()` and `core::num::from_str_common()`. - Fixed most places in the codebase where `to_str()` is being used. - Added uint-template to_str and from_str overflow tests.
Diffstat (limited to 'src/libstd/bigint.rs')
| -rw-r--r-- | src/libstd/bigint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/bigint.rs b/src/libstd/bigint.rs index 0104e72764f..64126ea918f 100644 --- a/src/libstd/bigint.rs +++ b/src/libstd/bigint.rs @@ -456,7 +456,7 @@ pub impl BigUint { pure fn fill_concat(v: &[BigDigit], radix: uint, l: uint) -> ~str { if v.is_empty() { return ~"0" } str::trim_left_chars(str::concat(vec::reversed(v).map(|n| { - let s = uint::to_str(*n as uint, radix); + let s = uint::to_str_radix(*n as uint, radix); str::from_chars(vec::from_elem(l - s.len(), '0')) + s })), ['0']) } |
