This commit is contained in:
jazzpi 2015-03-30 12:45:46 +02:00
parent e97964dd5c
commit 7ba3397cd9

View file

@ -102,6 +102,8 @@ class Command
if off1? if off1?
address1 += @parseOffset(off1) address1 += @parseOffset(off1)
address1 = 0 if address1 is -1
if address1 < 0 or address1 > lastLine if address1 < 0 or address1 > lastLine
throw new CommandError('Invalid range') throw new CommandError('Invalid range')