From 5f087f089f03c648527ac77a32bcb202c981bb57 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Wed, 4 Nov 2020 15:12:44 +0100 Subject: [PATCH] Update compiler/rustc_target/src/abi/mod.rs Co-authored-by: Ralf Jung --- compiler/rustc_target/src/abi/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_target/src/abi/mod.rs b/compiler/rustc_target/src/abi/mod.rs index 12cdd5c169a..55ace982d72 100644 --- a/compiler/rustc_target/src/abi/mod.rs +++ b/compiler/rustc_target/src/abi/mod.rs @@ -319,7 +319,7 @@ impl Size { // Sign-extend it. let shift = 128 - size; // Shift the unsigned value to the left, then shift back to the right as signed - // (essentially fills with FF on the left). + // (essentially fills with sign bit on the left). (((value << shift) as i128) >> shift) as u128 }