From f360d222c897d36ea751051ca87c0e588fa653b2 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Mon, 5 Jul 2010 14:42:12 -0700 Subject: Uint-ify various bits of _str and _vec, enrich _vec a bit. --- src/lib/_str.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/_str.rs') diff --git a/src/lib/_str.rs b/src/lib/_str.rs index ac27f294..f1de80f1 100644 --- a/src/lib/_str.rs +++ b/src/lib/_str.rs @@ -4,13 +4,13 @@ native "rust" mod rustrt { type sbuf; fn str_buf(str s) -> sbuf; fn str_len(str s) -> uint; - fn str_alloc(int n_bytes) -> str; + fn str_alloc(uint n_bytes) -> str; } fn is_utf8(vec[u8] v) -> bool { } -fn alloc(int n_bytes) -> str { +fn alloc(uint n_bytes) -> str { ret rustrt.str_alloc(n_bytes); } -- cgit v1.2.3