fix ext type inheritance from 'int' in Py3
[cython.git] / Cython / Compiler / ModuleNode.py
index 44a24994a8ce73eca3370cc0ba0f41a64b9b478e..c39128feb9532aee006e5b56305de2d73f9fe9a7 100644 (file)
@@ -556,6 +556,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
 #endif
 
 #if PY_MAJOR_VERSION >= 3
+  #define PyIntObject                  PyLongObject
   #define PyInt_Type                   PyLong_Type
   #define PyInt_Check(op)              PyLong_Check(op)
   #define PyInt_CheckExact(op)         PyLong_CheckExact(op)