Skip to content

Commit 31e0b2a

Browse files
committed
Refactorize RND visit
1 parent 03ef5db commit 31e0b2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/zx48k/translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ def visit_ABS(self, node):
12111211
self.ic_abs(node.children[0].type_, node.t, node.children[0].t)
12121212

12131213
def visit_RND(self, node): # A special "ZEROARY" function with no parameters
1214-
self.emit('call', 'RND', Type.float_.size)
1214+
self.ic_call('RND', Type.float_.size)
12151215
backend.REQUIRES.add('random.asm')
12161216

12171217
# endregion

0 commit comments

Comments
 (0)