From 13b9a16a7b98f2308d7fae01ad122a3f94032c63 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Mon, 16 Jan 2012 10:46:11 +0100 Subject: [PATCH] Properly print u suffix for uint literals Issue #1532 --- src/comp/syntax/ast_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp/syntax/ast_util.rs b/src/comp/syntax/ast_util.rs index d8070aa098d6..4ee2d8fa51e8 100644 --- a/src/comp/syntax/ast_util.rs +++ b/src/comp/syntax/ast_util.rs @@ -126,7 +126,7 @@ fn int_ty_max(t: int_ty) -> u64 { fn uint_ty_to_str(t: uint_ty) -> str { alt t { - ty_u. { "" } ty_u8. { "u8" } ty_u16. { "u16" } + ty_u. { "u" } ty_u8. { "u8" } ty_u16. { "u16" } ty_u32. { "u32" } ty_u64. { "u64" } } }