File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1198,13 +1198,13 @@ def visit_LEN(self, node):
11981198 self .ic_lenstr (node .t , node .operand .t )
11991199
12001200 def visit_VAL (self , node ):
1201- self .emit ( 'fparam' + self . TSUFFIX ( gl .PTR_TYPE ) , node .operand .t )
1201+ self .ic_fparam ( gl .PTR_TYPE , node .operand .t )
12021202 if node .operand .token not in ('STRING' , 'VAR' ) and node .operand .t != '_' :
1203- self .emit ( 'fparamu8' , 1 ) # If the argument is not a variable, it must be freed
1203+ self .ic_fparam ( TYPE . ubyte , 1 ) # If the argument is not a variable, it must be freed
12041204 else :
1205- self .emit ( 'fparamu8' , 0 )
1205+ self .ic_fparam ( TYPE . ubyte , 0 )
12061206
1207- self .emit ( 'call' , 'VAL' , node .type_ .size )
1207+ self .ic_call ( 'VAL' , node .type_ .size )
12081208 backend .REQUIRES .add ('val.asm' )
12091209
12101210 def visit_ABS (self , node ):
You can’t perform that action at this time.
0 commit comments