From e9dcdec020e9f3a90b0b7364398d9e195fdb77a3 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 23 Nov 2013 17:28:44 +0100 Subject: call PyNumber_Int() for builtin int() function --- Cython/Utility/ModuleSetupCode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Cython/Utility/ModuleSetupCode.c') 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 -- cgit v1.2.1