def fixup_ternary(self, node):
self[node].clear()
- test = self.call(name="oppc_bool", code=[
+ test = self.call(name="oppc_cast_bool", code=[
self[node.test],
])
self[node].emit(stmt="(")
@pc_util.Hook(pc_ast.IfExpr)
def IfExpr(self, node):
yield node
- test = self.call(name="oppc_bool", code=[
+ test = self.call(name="oppc_cast_bool", code=[
self[node.test],
])
self[node].emit(stmt="if (")
@pc_util.Hook(pc_ast.SwitchExpr)
def SwitchExpr(self, node):
yield node
- subject = self.call(name="oppc_int64", code=[
+ subject = self.call(name="oppc_cast_int64", code=[
self[node.subject],
])
self[node].emit(stmt="switch (")