mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-04 12:07:45 +00:00
Fix various foreign signatures
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user