Skip to content

Commit 3ccd911

Browse files
committed
Refactorize SQR visit
1 parent 2563efc commit 3ccd911

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/zx48k/translator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,8 +1267,8 @@ def visit_SGN(self, node):
12671267
self.REQUIRES.add('sgn%s.asm' % s)
12681268

12691269
def visit_SQR(self, node):
1270-
self.emit('fparam' + self.TSUFFIX(node.operand.type_), node.operand.t)
1271-
self.emit('call', 'SQRT', node.size)
1270+
self.ic_fparam(node.operand.type_, node.operand.t)
1271+
self.ic_call('SQRT', node.size)
12721272
self.REQUIRES.add('sqrt.asm')
12731273

12741274
# endregion

0 commit comments

Comments
 (0)