diff options
Diffstat (limited to 'src/lib/_str.rs')
| -rw-r--r-- | src/lib/_str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |