Fix build on further stages

This commit is contained in:
Simonas Kazlauskas 2017-02-02 07:25:29 +02:00
parent a00a0adc79
commit 92c56f607b

View File

@ -400,7 +400,7 @@ pub fn to_attr(&self, signed: bool) -> attr::IntType {
} }
/// Find the smallest Integer type which can represent the signed value. /// Find the smallest Integer type which can represent the signed value.
pub fn fit_signed(x: i64) -> Integer { pub fn fit_signed(x: i128) -> Integer {
match x { match x {
-0x0000_0000_0000_0001...0x0000_0000_0000_0000 => I1, -0x0000_0000_0000_0001...0x0000_0000_0000_0000 => I1,
-0x0000_0000_0000_0080...0x0000_0000_0000_007f => I8, -0x0000_0000_0000_0080...0x0000_0000_0000_007f => I8,
@ -412,7 +412,7 @@ pub fn fit_signed(x: i64) -> Integer {
} }
/// Find the smallest Integer type which can represent the unsigned value. /// Find the smallest Integer type which can represent the unsigned value.
pub fn fit_unsigned(x: u64) -> Integer { pub fn fit_unsigned(x: u128) -> Integer {
match x { match x {
0...0x0000_0000_0000_0001 => I1, 0...0x0000_0000_0000_0001 => I1,
0...0x0000_0000_0000_00ff => I8, 0...0x0000_0000_0000_00ff => I8,