Skip to content

Commit 5ba0d91

Browse files
committed
Fix const array issue
1 parent 8fffbf8 commit 5ba0d91

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
@@ -5277,7 +5277,8 @@ pub(crate) mod utils {
52775277
} else {
52785278
t.to_rust_ty_or_opaque(ctx, &())
52795279
};
5280-
stream.to_ptr(ctx.resolve_type(t).is_const())
5280+
stream
5281+
.to_ptr(ctx.resolve_type(t).is_const() || arg_ty.is_const())
52815282
}
52825283
TypeKind::Pointer(inner) => {
52835284
let inner = ctx.resolve_item(inner);

0 commit comments

Comments
 (0)