projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
174a8a0
)
replace the now missing PyNumber_Divide() by PyNumber_TrueDivide()
author
Stefan Behnel
<scoder@users.berlios.de>
Wed, 14 May 2008 22:09:18 +0000
(
00:09
+0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Wed, 14 May 2008 22:09:18 +0000
(
00:09
+0200)
Cython/Compiler/ModuleNode.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ModuleNode.py
b/Cython/Compiler/ModuleNode.py
index 3a25b73ed4c229f2e0f881a16d5614a937f72f47..095303a42b8562f331ae071aef574c61dddd383a 100644
(file)
--- a/
Cython/Compiler/ModuleNode.py
+++ b/
Cython/Compiler/ModuleNode.py
@@
-419,6
+419,7
@@
class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("#if PY_MAJOR_VERSION >= 3")
code.putln(" #define PyMethod_New(func, self, klass) (func!=NULL?(Py_INCREF(func),func):NULL)")
+ code.putln(" #define PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)")
code.putln("#endif")
code.putln("#ifndef __stdcall")