From ee2a11eb4f986e87df5c16850b70d612dd5e9ce9 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 23 Aug 2011 20:25:23 -0700 Subject: Convert std::uint to istrs. Issue #855 --- src/comp/syntax/parse/token.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/comp/syntax/parse') diff --git a/src/comp/syntax/parse/token.rs b/src/comp/syntax/parse/token.rs index 7e93444e09b..994c4e03b34 100644 --- a/src/comp/syntax/parse/token.rs +++ b/src/comp/syntax/parse/token.rs @@ -6,6 +6,7 @@ import util::interner; import std::int; import std::uint; import std::str; +import std::istr; type str_num = uint; @@ -146,7 +147,7 @@ fn to_str(r: lexer::reader, t: token) -> str { LIT_INT(i) { ret int::to_str(i, 10u); } - LIT_UINT(u) { ret uint::to_str(u, 10u); } + LIT_UINT(u) { ret istr::to_estr(uint::to_str(u, 10u)); } LIT_MACH_INT(tm, i) { ret int::to_str(i, 10u) + "_" + ty_mach_to_str(tm); } -- cgit 1.4.1-3-g733a5