Skip to content

Commit 2563efc

Browse files
committed
Refactorize SGN visit
1 parent dcb180c commit 2563efc

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
@@ -1262,8 +1262,8 @@ def visit_LN(self, node):
12621262

12631263
def visit_SGN(self, node):
12641264
s = self.TSUFFIX(node.operand.type_)
1265-
self.emit('fparam' + s, node.operand.t)
1266-
self.emit('call', '__SGN%s' % s.upper(), node.size)
1265+
self.ic_fparam(node.operand.type_, node.operand.t)
1266+
self.ic_call('__SGN%s' % s.upper(), node.size)
12671267
self.REQUIRES.add('sgn%s.asm' % s)
12681268

12691269
def visit_SQR(self, node):

0 commit comments

Comments
 (0)