Skip to content

Commit 81fdd58

Browse files
committed
Refactorize STR visit
1 parent 94a53e4 commit 81fdd58

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
@@ -1190,8 +1190,8 @@ def visit_CHR(self, node):
11901190
backend.REQUIRES.add('chr.asm')
11911191

11921192
def visit_STR(self, node):
1193-
self.emit('fparamf', node.children[0].t)
1194-
self.emit('call', '__STR_FAST', node.type_.size)
1193+
self.ic_fparam(TYPE.float_, node.children[0].t)
1194+
self.ic_call('__STR_FAST', node.type_.size)
11951195
backend.REQUIRES.add('str.asm')
11961196

11971197
def visit_LEN(self, node):

0 commit comments

Comments
 (0)