diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2012-08-17 15:54:18 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2012-08-17 15:54:18 -0700 |
| commit | 9ea6b3a32e808c4cf1e2d45cc26363e700944ef9 (patch) | |
| tree | 36e0e50e332585b0314a342d9071ff677643cbed /src/libcore/uint-template.rs | |
| parent | 69daeffddb534c4415967f18f795bc5b6dc262d2 (diff) | |
rustc: Remove a few allocations from metadata. Shaves a few milliseconds off compilation of hello world.
Diffstat (limited to 'src/libcore/uint-template.rs')
| -rw-r--r-- | src/libcore/uint-template.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/uint-template.rs b/src/libcore/uint-template.rs index 4f27e8cea8f..8e2cdf65c4a 100644 --- a/src/libcore/uint-template.rs +++ b/src/libcore/uint-template.rs @@ -121,7 +121,7 @@ impl T: iter::TimesIx { * * `buf` must not be empty */ -fn parse_buf(buf: ~[u8], radix: uint) -> option<T> { +fn parse_buf(buf: &[const u8], radix: uint) -> option<T> { if vec::len(buf) == 0u { return none; } let mut i = vec::len(buf) - 1u; let mut power = 1u as T; |
