aboutsummaryrefslogtreecommitdiff
path: root/src/checker/type.cpp
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-07-22 16:09:49 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-07-22 16:09:49 +0100
commitf8fd6fce0b9aabd9562ac8d0dda712154b829f26 (patch)
tree458af62a56423f4096834c5151fb1990fe2a721c /src/checker/type.cpp
parent86c083535f5f198c00901f3b137cf52ac36691fe (diff)
Procedure Literal
Diffstat (limited to 'src/checker/type.cpp')
-rw-r--r--src/checker/type.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp
index 301def0ca..291d6fd17 100644
--- a/src/checker/type.cpp
+++ b/src/checker/type.cpp
@@ -307,6 +307,11 @@ b32 are_types_identical(Type *x, Type *y) {
if (x == y)
return true;
+ if ((x == NULL && y != NULL) ||
+ (x != NULL && y == NULL)) {
+ return false;
+ }
+
switch (x->kind) {
case Type_Basic:
if (y->kind == Type_Basic)