projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14063d4
)
typo
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 26 Nov 2010 10:37:02 +0000
(11:37 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 26 Nov 2010 10:37:02 +0000
(11:37 +0100)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index c480278e3a497758df262f7e1f54c8d5fe380667..5e4dd32a7dac3a1b364c6c5b1a669de87f46b043 100644
(file)
--- a/
Cython/Compiler/Optimize.py
+++ b/
Cython/Compiler/Optimize.py
@@
-1827,7
+1827,7
@@
class OptimizeBuiltinCalls(Visitor.EnvTransform):
# Note: this requires the float() function to be typed as
# returning a C 'double'
if len(pos_args) == 0:
- return ExprNode.FloatNode(
+ return ExprNode
s
.FloatNode(
node, value="0.0", constant_result=0.0
).coerce_to(Builtin.float_type, self.current_env())
elif len(pos_args) != 1: