diff options
| author | Graydon Hoare <[email protected]> | 2010-07-05 14:42:12 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-05 14:42:12 -0700 |
| commit | f360d222c897d36ea751051ca87c0e588fa653b2 (patch) | |
| tree | baf79fe74df23434d17f2f32732153511a4dd13b /src/lib/_str.rs | |
| parent | Divide vec fill by element size when reporting vec len. (diff) | |
| download | rust-f360d222c897d36ea751051ca87c0e588fa653b2.tar.xz rust-f360d222c897d36ea751051ca87c0e588fa653b2.zip | |
Uint-ify various bits of _str and _vec, enrich _vec a bit.
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); } |