about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2017-02-02 07:25:29 +0200
committerSimonas Kazlauskas <git@kazlauskas.me>2017-02-10 19:42:41 +0200
commit92c56f607b24e5ef5dcbc70ac442c88c296e4591 (patch)
tree7948da6f0ce100f2272e0bf3b16b2c833a642fcb
parenta00a0adc7913152bff626d6dbebfa2cfdbb93d0a (diff)
downloadrust-92c56f607b24e5ef5dcbc70ac442c88c296e4591.tar.gz
rust-92c56f607b24e5ef5dcbc70ac442c88c296e4591.zip
Fix build on further stages
-rw-r--r--src/librustc/ty/layout.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/ty/layout.rs b/src/librustc/ty/layout.rs
index b61849abe68..3a7acc5c7b5 100644
--- a/src/librustc/ty/layout.rs
+++ b/src/librustc/ty/layout.rs
@@ -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,
@@ -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,