aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-05-14 17:05:52 +0100
committergingerBill <bill@gingerbill.org>2018-05-14 17:05:52 +0100
commite25c72ecddcf12c82aac439ad3fdc58629379765 (patch)
treedb5fe01a1f60f9f9c70a912014e529981412deea /src
parent780b81a59f28c411b3a1adea217a59e1cdb4458b (diff)
Fix #219 and #220
Diffstat (limited to 'src')
-rw-r--r--src/check_type.cpp3
-rw-r--r--src/common.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 81a3ce03e..7d6582ece 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -1931,7 +1931,8 @@ bool check_type_internal(Checker *c, AstNode *e, Type **type, Type *named_type)
Scope *s = c->context.scope;
Scope *entity_scope = s;
if (ps != nullptr && ps != s) {
- GB_ASSERT(is_scope_an_ancestor(ps, s) >= 0);
+ // TODO(bill): Is this check needed?
+ // GB_ASSERT_MSG(is_scope_an_ancestor(ps, s) >= 0);
entity_scope = ps;
}
Entity *e = alloc_entity_type_name(entity_scope, token, t);
diff --git a/src/common.cpp b/src/common.cpp
index 95f212ee1..ac73cf40e 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -250,7 +250,7 @@ gb_global i64 const signed_integer_mins[] = {
0,
0,
0,
- -9223372036854775808ll,
+ (-9223372036854775807ll - 1ll),
};
gb_global i64 const signed_integer_maxs[] = {
0,