diff options
| author | Graydon Hoare <[email protected]> | 2011-03-16 14:58:02 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-16 14:58:02 -0700 |
| commit | 54587bdccb7b6771cfc704a30fc0ef2c65824a15 (patch) | |
| tree | 6f154f9b038e9542b364e87ae887858a96bdb4a9 /src/lib/_uint.rs | |
| parent | Add some more dlopen-related suppressions for the Mac (diff) | |
| download | rust-54587bdccb7b6771cfc704a30fc0ef2c65824a15.tar.xz rust-54587bdccb7b6771cfc704a30fc0ef2c65824a15.zip | |
Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. Tweak std lib vec fns in process.
Diffstat (limited to 'src/lib/_uint.rs')
| -rw-r--r-- | src/lib/_uint.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/_uint.rs b/src/lib/_uint.rs index ceee9c77..5e8d4b97 100644 --- a/src/lib/_uint.rs +++ b/src/lib/_uint.rs @@ -61,7 +61,7 @@ fn to_str(mutable uint n, uint radix) -> str let str s = ""; while (n != 0u) { - s += digit(n % radix) as u8; + s += _str.unsafe_from_byte(digit(n % radix) as u8); n /= radix; } @@ -69,7 +69,7 @@ fn to_str(mutable uint n, uint radix) -> str let uint len = _str.byte_len(s); while (len != 0u) { len -= 1u; - s1 += s.(len); + s1 += _str.unsafe_from_byte(s.(len)); } ret s1; |