07-07-2009, 11:21 PM
It's already been fixed. If you're used to SVN, you can obtain always tha lattest build by typing:
or you can also apply this patch:
If you have the windows .MSI version, please wait until next version (tomorrow), so I can also include the INK/PAPER 8 fix. :roll:
Code:
svn co https://boriel.homeip.net/svn/zxbasic zxbasic
or you can also apply this patch:
Code:
--- zxbparser.py (revisión: 1454)
+++ zxbparser.py (copia de trabajo)
@@ -1738,7 +1738,7 @@
i.next[0] = make_binary(lineno, 'MINUS', make_typecast('u16', i.next[0]), lower_bound, lambda x, y: x - y, _type = 'u16')
if is_number(i.next[0]):
- val = i.next[0].value - b.symbol.lower
+ val = i.next[0].value
if val < 0 or val > (b.symbol.upper - b.symbol.lower):
warning(lineno, "Array '%s' subscript out of range" % id)