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):
return PyrexTypes.c_double_type
else:
return None
def c_types_okay(self, type1, type2):
return type1.is_float or type2.is_float
def calculate_result_code(self):
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