From: Stefan Behnel Date: Sat, 3 Jan 2009 08:15:44 +0000 (+0100) Subject: removed redundant type error for '**' X-Git-Tag: 0.11-beta~45 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6314aae9e4bf739d4d86866cab0809cc1b3b0417;p=cython.git removed redundant type error for '**' --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 9f759ff8..1043a64c 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -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()