cast the sign_extend result to i128.
This commit is contained in:
parent
a3383514d9
commit
b80332ed4c
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TypeLimits {
|
|||
ty::Int(t) => {
|
||||
let ity = attr::IntType::SignedInt(t);
|
||||
let size = layout::Integer::from_attr(&cx.tcx, ity).size();
|
||||
let actually = sign_extend(val, size);
|
||||
let actually = sign_extend(val, size) as i128;
|
||||
(format!("{:?}", t), actually.to_string())
|
||||
}
|
||||
ty::Uint(t) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue