From 6314aae9e4bf739d4d86866cab0809cc1b3b0417 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 3 Jan 2009 09:15:44 +0100 Subject: [PATCH] removed redundant type error for '**' --- Cython/Compiler/ExprNodes.py | 4 ---- 1 file changed, 4 deletions(-) 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() -- 2.26.2