Skip to content

Commit

Permalink
Avoid suffixes on alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
GKFX committed Feb 5, 2023
1 parent c41408d commit 06cbeb1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bindgen-tests/tests/expectations/tests/complex_global.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions bindgen-tests/tests/expectations/tests/convert-floats.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions bindgen-tests/tests/expectations/tests/long_double.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bindgen/codegen/mod.rs
Expand Up @@ -4786,6 +4786,8 @@ pub mod utils {
result: &mut Vec<proc_macro2::TokenStream>,
) {
let Layout { align, size, .. } = layout;
let align = proc_macro2::Literal::u64_unsuffixed(align as u64);
let size = proc_macro2::Literal::u64_unsuffixed(size as u64);
result.insert(
0,
quote! {
Expand Down

0 comments on commit 06cbeb1

Please sign in to comment.