diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2013-11-23 17:28:44 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2013-11-23 17:28:44 +0100 |
commit | e9dcdec020e9f3a90b0b7364398d9e195fdb77a3 (patch) | |
tree | 0161004d23ce6e8237a1c402278ee4a7c7c0890d /Cython/Utility/ModuleSetupCode.c | |
parent | 1b646b6a39290eb62645e7b26137c0f49122a835 (diff) | |
download | cython-e9dcdec020e9f3a90b0b7364398d9e195fdb77a3.tar.gz |
call PyNumber_Int() for builtin int() function
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index a3a80c163..1fe66ea5c 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -218,6 +218,7 @@ #define PyInt_AsSsize_t PyLong_AsSsize_t #define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask + #define PyNumber_Int PyNumber_Long #endif #if PY_MAJOR_VERSION >= 3 |