Port to Python 3.
[pyke] / pyke-mLib.c
index fd6f895..30f6735 100644 (file)
@@ -52,8 +52,10 @@ PyObject *getk64(kludge64 u)
   Py_DECREF(i); i = t;
   if ((j = PyLong_FromUnsignedLong(LO64(u))) == 0) goto end;
   if ((t = PyNumber_InPlaceOr(i, j)) == 0) goto end;
+#  ifdef PY2
   Py_DECREF(i); i = t;
   if ((t = PyNumber_Int(i)) == 0) goto end;
+#  endif
   rc = t;
 end:
   Py_XDECREF(i);