Skip to content

Commit

Permalink
Fix const array issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rsammelson authored and emilio committed Feb 19, 2024
1 parent 285eb56 commit 41faf8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindgen/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5285,7 +5285,8 @@ pub(crate) mod utils {
} else {
t.to_rust_ty_or_opaque(ctx, &())
};
stream.to_ptr(ctx.resolve_type(t).is_const())
stream
.to_ptr(ctx.resolve_type(t).is_const() || arg_ty.is_const())
}
TypeKind::Pointer(inner) => {
let inner = ctx.resolve_item(inner);
Expand Down

0 comments on commit 41faf8e

Please sign in to comment.