tidy line length
This commit is contained in:
parent
f857199073
commit
d7efc76b7e
1 changed files with 4 additions and 2 deletions
|
@ -139,7 +139,8 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
|
|||
Scalar::from_uint(1u128 << (num_bits - 1), Size::from_bits(num_bits))
|
||||
}
|
||||
} else {
|
||||
Scalar::from_uint(u128::max_value() >> (128 - num_bits), Size::from_bits(num_bits))
|
||||
Scalar::from_uint(u128::max_value() >> (128 - num_bits),
|
||||
Size::from_bits(num_bits))
|
||||
};
|
||||
self.write_scalar(val, dest)?;
|
||||
} else {
|
||||
|
@ -156,7 +157,8 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
|
|||
let val = if l.layout.abi.is_signed() {
|
||||
if first_term & (1 << (num_bits-1)) == 0 { // first term is positive
|
||||
// so overflow is positive
|
||||
Scalar::from_uint((1u128 << (num_bits - 1)) - 1, Size::from_bits(num_bits))
|
||||
Scalar::from_uint((1u128 << (num_bits - 1)) - 1,
|
||||
Size::from_bits(num_bits))
|
||||
} else {
|
||||
// if first term negative, overflow must be negative
|
||||
Scalar::from_uint(1u128 << (num_bits - 1), Size::from_bits(num_bits))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue