Skip to content

Commit 5820424

Browse files
committed
Fix const array issue
1 parent 4f9fa49 commit 5820424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindgen/codegen/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5260,7 +5260,7 @@ pub(crate) mod utils {
52605260
} else {
52615261
t.to_rust_ty_or_opaque(ctx, &())
52625262
};
5263-
stream.to_ptr(ctx.resolve_type(t).is_const())
5263+
stream.to_ptr(ctx.resolve_type(t).is_const() || arg_ty.is_const())
52645264
}
52655265
TypeKind::Pointer(inner) => {
52665266
let inner = ctx.resolve_item(inner);

0 commit comments

Comments
 (0)