From 42c4bed36e95cdb95110dff71895832f45e9c1a9 Mon Sep 17 00:00:00 2001 From: Chris Pressey Date: Fri, 16 Feb 2018 15:46:55 +0000 Subject: [PATCH] Make tests pass. --- src/sixtypical/analyzer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sixtypical/analyzer.py b/src/sixtypical/analyzer.py index 0cd8977..396e116 100644 --- a/src/sixtypical/analyzer.py +++ b/src/sixtypical/analyzer.py @@ -514,6 +514,7 @@ class Analyzer(object): pass else: raise TypeMismatchError((src, dest)) + context.assert_in_range(dest.index, dest.ref) elif isinstance(src, IndexedRef) and isinstance(dest, LocationRef): if TableType.is_a_table_type(src.ref.type, TYPE_WORD) and dest.type == TYPE_WORD: @@ -523,6 +524,7 @@ class Analyzer(object): pass else: raise TypeMismatchError((src, dest)) + context.assert_in_range(src.index, src.ref) elif isinstance(src, (LocationRef, ConstantRef)) and isinstance(dest, LocationRef): if src.type == dest.type: