We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e587e commit 3393584Copy full SHA for 3393584
src/librustc/ty/layout.rs
@@ -400,7 +400,7 @@ impl Integer {
400
}
401
402
/// Find the smallest Integer type which can represent the signed value.
403
- pub fn fit_signed(x: i64) -> Integer {
+ pub fn fit_signed(x: i128) -> Integer {
404
match x {
405
-0x0000_0000_0000_0001...0x0000_0000_0000_0000 => I1,
406
-0x0000_0000_0000_0080...0x0000_0000_0000_007f => I8,
@@ -412,7 +412,7 @@ impl Integer {
412
413
414
/// Find the smallest Integer type which can represent the unsigned value.
415
- pub fn fit_unsigned(x: u64) -> Integer {
+ pub fn fit_unsigned(x: u128) -> Integer {
416
417
0...0x0000_0000_0000_0001 => I1,
418
0...0x0000_0000_0000_00ff => I8,
0 commit comments