Navigation Menu

Skip to content

Commit

Permalink
Update compiler/rustc_target/src/abi/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
oli-obk and RalfJung committed Nov 4, 2020
1 parent 5f087f0 commit 332750f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_target/src/abi/mod.rs
Expand Up @@ -307,7 +307,7 @@ impl Size {
if bytes < dl.obj_size_bound() { Some(Size::from_bytes(bytes)) } else { None }
}

/// Truncates `value` to `self` bits and then sign-extend it to 128 bits
/// Truncates `value` to `self` bits and then sign-extends it to 128 bits
/// (i.e., if it is negative, fill with 1's on the left).
#[inline]
pub fn sign_extend(self, value: u128) -> u128 {
Expand Down

0 comments on commit 332750f

Please sign in to comment.