Skip to content

Commit 4b67e6f

Browse files
committed
Fix bug in exception
1 parent 25fc931 commit 4b67e6f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/arch/zx48k/backend/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,11 +1807,9 @@ def _inline(ins):
18071807

18081808

18091809
# -------- 3 address code implementation ----------
1810-
1811-
class Quad(object):
1810+
class Quad:
18121811
""" Implements a Quad code instruction.
18131812
"""
1814-
18151813
def __init__(self, *args):
18161814
""" Creates a quad-uple checking it has the current params.
18171815
Operators should be passed as Quad('+', tSymbol, val1, val2)
@@ -1823,7 +1821,7 @@ def __init__(self, *args):
18231821
errors.throw_invalid_quad_code(args[0])
18241822

18251823
if len(args) - 1 != QUADS[args[0]][0]:
1826-
errors.throw_invalid_quad_params(args[0], len(args) - 1)
1824+
errors.throw_invalid_quad_params(args[0], len(args) - 1, QUADS[args[0]][0])
18271825

18281826
args = tuple([str(x) for x in args]) # Convert it to strings
18291827

0 commit comments

Comments
 (0)