chiark
/
gitweb
/
~mdw
/
pyke
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Port to Python 3.
[pyke]
/
pyke-mLib.c
diff --git
a/pyke-mLib.c
b/pyke-mLib.c
index fd6f895857a07bd47a6d2b7ea87b3a46ef4ffdee..30f6735e8a9c63bf24c9a8dffac04f49763d0e0f 100644
(file)
--- a/
pyke-mLib.c
+++ b/
pyke-mLib.c
@@
-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);