projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ad4e77
)
removed redundant type error for '**'
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 3 Jan 2009 08:15:44 +0000
(09:15 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 3 Jan 2009 08:15:44 +0000
(09:15 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 9f759ff88195313be3808c89f41e2c559d08f1bc..1043a64c2bc29dbec5906e00b461d8dda8de43ba 100644
(file)
--- 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()