about summary refs log tree commit diff
path: root/src/libcore/uint-template.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-08-17 15:54:18 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-08-17 15:54:18 -0700
commit9ea6b3a32e808c4cf1e2d45cc26363e700944ef9 (patch)
tree36e0e50e332585b0314a342d9071ff677643cbed /src/libcore/uint-template.rs
parent69daeffddb534c4415967f18f795bc5b6dc262d2 (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.rs2
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;