Fix various foreign signatures

This commit is contained in:
Harold Brenes
2025-09-29 19:54:53 -04:00
parent 9b4c0ea492
commit 24daa4427c
6 changed files with 19 additions and 7 deletions

View File

@@ -851,6 +851,12 @@ gb_internal bool signature_parameter_similar_enough(Type *x, Type *y) {
}
}
Type *x_base = base_type(x);
Type *y_base = base_type(y);
if (x_base->kind == y_base->kind && x_base->kind == Type_Struct) {
return type_size_of(x_base) == type_size_of(y_base) && type_align_of(x_base) == type_align_of(y_base);
}
return are_types_identical(x, y);
}