Align: add bytes_usize and bits_usize
This commit is contained in:
parent
20aa2d81e3
commit
65d74785d7
2 changed files with 11 additions and 1 deletions
|
@ -266,7 +266,7 @@ pub(crate) mod rustc {
|
|||
|
||||
ty::Ref(lifetime, ty, mutability) => {
|
||||
let ty_and_layout = cx.layout_of(*ty)?;
|
||||
let align = ty_and_layout.align.abi.bytes() as usize;
|
||||
let align = ty_and_layout.align.abi.bytes_usize();
|
||||
let size = ty_and_layout.size.bytes_usize();
|
||||
Ok(Tree::Ref(Ref {
|
||||
lifetime: *lifetime,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue