We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 523753f commit bb2af3bCopy full SHA for bb2af3b
pcbasic/basic/mlparser.py
@@ -40,11 +40,13 @@ def parse_number(self, default=None):
40
if len(c) == 0:
41
raise error.BASICError(error.IFC)
42
elif ord(c) > 8:
43
- step = self._parse_variable().to_int()
+ stepval = self._parse_variable()
44
+ step = values.pass_number(stepval).to_int()
45
self.require_read((b';',), err=error.IFC)
46
else:
47
# varptr$
- step = self.memory.get_value_for_varptrstr(self.read(3)).to_int()
48
+ stepval = self.memory.get_value_for_varptrstr(self.read(3))
49
50
elif c and c in DIGITS:
51
step = self._parse_const()
52
elif default is not None:
0 commit comments