Properly print u suffix for uint literals

Issue #1532
This commit is contained in:
Marijn Haverbeke 2012-01-16 10:46:11 +01:00
parent b39154233a
commit 13b9a16a7b

View File

@ -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" }
}
}