Commit ae87153d authored by Robert Bradshaw's avatar Robert Bradshaw

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

parent ca53faeb
......@@ -2515,6 +2515,9 @@ class PowNode(NumBinopNode):
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)" % (
self.operand1.result_code, self.operand2.result_code)
......
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