aboutsummaryrefslogtreecommitdiff
path: root/src/checker/expr.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-12 23:16:06 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-12 23:16:06 +0100
commit59fb74d2a2706898cca60e35874ecd2477202e71 (patch)
treea27361bf046115b5bb44c3b9f44b59581e86dc71 /src/checker/expr.cpp
parentd4ba6b546632b3174533a2d099031362f74085e9 (diff)
Fix array bounds checking
Diffstat (limited to 'src/checker/expr.cpp')
-rw-r--r--src/checker/expr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/checker/expr.cpp b/src/checker/expr.cpp
index 9d83cca69..0c89d1580 100644
--- a/src/checker/expr.cpp
+++ b/src/checker/expr.cpp
@@ -52,6 +52,10 @@ b32 check_is_assignable_to(Checker *c, Operand *operand, Type *type, b32 is_argu
return true;
}
+ if (operand->mode == Addressing_Builtin) {
+ return false;
+ }
+
Type *s = operand->type;
if (are_types_identical(s, type)) {