Commit 6314aae9 authored by Stefan Behnel's avatar Stefan Behnel

removed redundant type error for '**'

parent 9ad4e771
...@@ -4044,10 +4044,6 @@ class NumBinopNode(BinopNode): ...@@ -4044,10 +4044,6 @@ 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 self.operator == "**" and type1.is_int and type2.is_int:
error(self.pos, "** with two C int types is ambiguous")
self.type = error_type
return
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