Convert std::int to istrs. Issue #855

This commit is contained in:
Brian Anderson
2011-08-23 21:17:20 -07:00
parent ee2a11eb4f
commit 53be480d20
20 changed files with 92 additions and 51 deletions

View File

@@ -337,7 +337,8 @@ obj new_writer(out: buf_writer) {
out.write(str::bytes(str::from_char(ch)));
}
fn write_int(n: int) { out.write(str::bytes(int::to_str(n, 10u))); }
fn write_int(n: int) { out.write(str::bytes(
istr::to_estr(int::to_str(n, 10u)))); }
fn write_uint(n: uint) { out.write(str::bytes(
istr::to_estr(uint::to_str(n, 10u)))); }
fn write_bytes(bytes: &[u8]) { out.write(bytes); }