chiark / gitweb /
Port to Python 3.
[pyke] / pyke-mLib.c
index fd6f895857a07bd47a6d2b7ea87b3a46ef4ffdee..30f6735e8a9c63bf24c9a8dffac04f49763d0e0f 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);