diff options
| author | gingerBill <bill@gingerbill.org> | 2024-02-22 14:01:23 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-02-22 14:01:23 +0000 |
| commit | 213b2fd0f8059751b0cdd05b904c49109b21d474 (patch) | |
| tree | fd78ada9c6bea6e9f3bdc218a921acdf7d9b16ee /src/types.cpp | |
| parent | 42d595f6a1656968ddb836b0eda285c1dcf114c2 (diff) | |
Add `bit_field` as a keyword
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp index 2f1994574..78d281715 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -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; + } } } |