diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-12 23:16:06 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-12 23:16:06 +0100 |
| commit | 59fb74d2a2706898cca60e35874ecd2477202e71 (patch) | |
| tree | a27361bf046115b5bb44c3b9f44b59581e86dc71 /src/checker/expr.cpp | |
| parent | d4ba6b546632b3174533a2d099031362f74085e9 (diff) | |
Fix array bounds checking
Diffstat (limited to 'src/checker/expr.cpp')
| -rw-r--r-- | src/checker/expr.cpp | 4 |
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)) { |