Commit 8dabe05f authored by Stefan Behnel's avatar Stefan Behnel

copy over standard node attributes when copying a BoolBinopNode

--HG--
extra : transplant_source : %94%F6%D1%0B%19%00%C5%87%83%0Dl%A4U%8Db%19r%E7%5C%DD
parent d45a5cce
......@@ -9659,13 +9659,13 @@ class BoolBinopNode(ExprNode):
or self.operand2.compile_time_value(denv)
def coerce_to_boolean(self, env):
return BoolBinopNode(
self.pos,
operator = self.operator,
operand1 = self.operand1.coerce_to_boolean(env),
operand2 = self.operand2.coerce_to_boolean(env),
type = PyrexTypes.c_bint_type,
is_temp = self.is_temp)
return BoolBinopNode.from_node(
self,
operator=self.operator,
operand1=self.operand1.coerce_to_boolean(env),
operand2=self.operand2.coerce_to_boolean(env),
type=PyrexTypes.c_bint_type,
is_temp=self.is_temp)
def analyse_types(self, env):
self.operand1 = self.operand1.analyse_types(env)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment