Commit ae87153d authored by Robert Bradshaw's avatar Robert Bradshaw

Disable a**b for cdef int's. (Return result was a double.)

parent ca53faeb
...@@ -2514,6 +2514,9 @@ class PowNode(NumBinopNode): ...@@ -2514,6 +2514,9 @@ class PowNode(NumBinopNode):
return PyrexTypes.c_double_type return PyrexTypes.c_double_type
else: else:
return None return None
def c_types_okay(self, type1, type2):
return type1.is_float or type2.is_float
def calculate_result_code(self): def calculate_result_code(self):
return "pow(%s, %s)" % ( return "pow(%s, %s)" % (
......
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