Skip to content

Commit 3393584

Browse files
committed
Fix build on further stages
1 parent 94e587e commit 3393584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/ty/layout.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ impl Integer {
400400
}
401401

402402
/// Find the smallest Integer type which can represent the signed value.
403-
pub fn fit_signed(x: i64) -> Integer {
403+
pub fn fit_signed(x: i128) -> Integer {
404404
match x {
405405
-0x0000_0000_0000_0001...0x0000_0000_0000_0000 => I1,
406406
-0x0000_0000_0000_0080...0x0000_0000_0000_007f => I8,
@@ -412,7 +412,7 @@ impl Integer {
412412
}
413413

414414
/// Find the smallest Integer type which can represent the unsigned value.
415-
pub fn fit_unsigned(x: u64) -> Integer {
415+
pub fn fit_unsigned(x: u128) -> Integer {
416416
match x {
417417
0...0x0000_0000_0000_0001 => I1,
418418
0...0x0000_0000_0000_00ff => I8,

0 commit comments

Comments
 (0)