diff options
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/token.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |
