Skip to content

Commit

Permalink
Fix build on further stages
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Feb 10, 2017
1 parent a00a0ad commit 92c56f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/ty/layout.rs
Expand Up @@ -400,7 +400,7 @@ impl Integer {
}

/// 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 {
-0x0000_0000_0000_0001...0x0000_0000_0000_0000 => I1,
-0x0000_0000_0000_0080...0x0000_0000_0000_007f => I8,
Expand All @@ -412,7 +412,7 @@ impl Integer {
}

/// 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 {
0...0x0000_0000_0000_0001 => I1,
0...0x0000_0000_0000_00ff => I8,
Expand Down

0 comments on commit 92c56f6

Please sign in to comment.