Skip to content

Commit 6256c4a

Browse files
committed
fix: fixes SAVE command
SAVE command was not typecasting start and length values to UInteger. Fixed.
1 parent 5a33655 commit 6256c4a

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)