Commit 14beaf2d authored by William Stein's avatar William Stein

Merge in lxml-pyrex enum patch.

parent 9266b95e
...@@ -2478,6 +2478,10 @@ class NumBinopNode(BinopNode): ...@@ -2478,6 +2478,10 @@ class NumBinopNode(BinopNode):
def analyse_c_operation(self, env): def analyse_c_operation(self, env):
type1 = self.operand1.type type1 = self.operand1.type
type2 = self.operand2.type type2 = self.operand2.type
if type1.is_enum:
type1 = PyrexTypes.c_int_type
if type2.is_enum:
type2 = PyrexTypes.c_int_type
self.type = self.compute_c_result_type(type1, type2) self.type = self.compute_c_result_type(type1, type2)
if not self.type: if not self.type:
self.type_error() self.type_error()
......
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