Skip to content

Commit 0b182e1

Browse files
committed
fix: crash on bad array dimension
1 parent 8fff061 commit 0b182e1

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/zxbc/zxbparser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,7 @@ def check_bound(boundlist, remaining):
797797
return True # It's OK :-)
798798

799799
error(lineno, "Unexpected extra vector dimensions. It should be %i" % len(remaining))
800+
return False
800801

801802
if not isinstance(remaining, list):
802803
error(lineno, "Mismatched vector size. Missing %i extra dimension(s)" % len(boundlist))
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dim r(0 to r) as ulong => {40000, 35000, 30000, 25000, 20000, 15000, 10000}
2+

0 commit comments

Comments
 (0)