diff options
Diffstat (limited to 'python/guestfs-py-byhand.c')
-rw-r--r-- | python/guestfs-py-byhand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/guestfs-py-byhand.c b/python/guestfs-py-byhand.c index 29be83b7..1756963a 100644 --- a/python/guestfs-py-byhand.c +++ b/python/guestfs-py-byhand.c @@ -168,7 +168,7 @@ py_guestfs_set_event_callback (PyObject *self, PyObject *args) snprintf (key, sizeof key, "_python_event_%d", eh); guestfs_set_private (g, key, py_callback); - py_eh = PyInt_FromLong ((long) eh); + py_eh = PyLong_FromLong ((long) eh); return py_eh; } |