Skip to content

Commit dc467c7

Browse files
committed
Fix const array issue
1 parent 454ec84 commit dc467c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bindgen/codegen/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5285,7 +5285,8 @@ pub(crate) mod utils {
52855285
} else {
52865286
t.to_rust_ty_or_opaque(ctx, &())
52875287
};
5288-
stream.to_ptr(ctx.resolve_type(t).is_const())
5288+
stream
5289+
.to_ptr(ctx.resolve_type(t).is_const() || arg_ty.is_const())
52895290
}
52905291
TypeKind::Pointer(inner) => {
52915292
let inner = ctx.resolve_item(inner);

0 commit comments

Comments
 (0)