Skip to content

Commit bb8be05

Browse files
authored
Merge pull request #652 from boriel/bugfix/save_code
fix: fixes SAVE command
2 parents 5a33655 + 6256c4a commit bb8be05

3 files changed

Lines changed: 716 additions & 2 deletions

File tree

src/zxbc/zxbparser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2167,8 +2167,8 @@ def p_save_code(p):
21672167
start = make_number(16384, lineno=p.lineno(1))
21682168
length = make_number(6912, lineno=p.lineno(1))
21692169
else:
2170-
start = p[4]
2171-
length = p[6]
2170+
start = make_typecast(TYPE.uinteger, p[4], p.lineno(4))
2171+
length = make_typecast(TYPE.uinteger, p[6], p.lineno(6))
21722172

21732173
p[0] = make_sentence(p.lineno(1), p[1], expr, start, length)
21742174

0 commit comments

Comments
 (0)