diff options
| author | gingerBill <bill@gingerbill.org> | 2022-11-11 15:54:33 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-11-11 15:54:33 +0000 |
| commit | 2b83f27f065d2805e149da23fb1d3c766889491d (patch) | |
| tree | d9c23dfeda4063c075adc5296fc410d466e8bf43 /src/types.cpp | |
| parent | 22840ddf9769c47f8ac0f68b5b12f75200229bd9 (diff) | |
| parent | 3d0e19429818781882deca35df730b3766bade5d (diff) | |
Merge branch 'master' into map-dev
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp index 47007491d..b7bfe1b0f 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -1260,6 +1260,9 @@ bool is_type_typed(Type *t) { } bool is_type_untyped(Type *t) { t = base_type(t); + if (t == nullptr) { + return false; + } if (t->kind == Type_Basic) { return (t->Basic.flags & BasicFlag_Untyped) != 0; } |