Skip to content

Commit 98766e3

Browse files
committed
Fix the maximum value of i16. Closes #2462.
1 parent 5e35d49 commit 98766e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustsyntax/ast_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ fn int_ty_to_str(t: int_ty) -> str {
120120
fn int_ty_max(t: int_ty) -> u64 {
121121
alt t {
122122
ty_i8 { 0x80u64 }
123-
ty_i16 { 0x800u64 }
123+
ty_i16 { 0x8000u64 }
124124
ty_i | ty_char | ty_i32 { 0x80000000u64 } // actually ni about ty_i
125125
ty_i64 { 0x8000000000000000u64 }
126126
}

0 commit comments

Comments
 (0)