Add bit_field as a keyword

This commit is contained in:
gingerBill
2024-02-22 14:01:23 +00:00
parent 42d595f6a1
commit 213b2fd0f8
3 changed files with 7 additions and 2 deletions

View File

@@ -4114,8 +4114,10 @@ gb_internal isize check_is_assignable_to_using_subtype(Type *src, Type *dst, isi
}
if (allow_polymorphic && dst_is_polymorphic) {
Type *fb = base_type(type_deref(f->type));
if (fb->kind == Type_Struct && fb->Struct.polymorphic_parent == dst) {
return true;
if (fb->kind == Type_Struct) {
if (fb->Struct.polymorphic_parent == dst) {
return true;
}
}
}