removed redundant type error for '**'
authorStefan Behnel <scoder@users.berlios.de>
Sat, 3 Jan 2009 08:15:44 +0000 (09:15 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 3 Jan 2009 08:15:44 +0000 (09:15 +0100)
Cython/Compiler/ExprNodes.py

index 9f759ff88195313be3808c89f41e2c559d08f1bc..1043a64c2bc29dbec5906e00b461d8dda8de43ba 100644 (file)
@@ -4044,10 +4044,6 @@ class NumBinopNode(BinopNode):
     def analyse_c_operation(self, env):
         type1 = self.operand1.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)
         if not self.type:
             self.type_error()