X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/d65a9a847e500ae144e31040454acba1a7333aaf..78911cdb6782ddccef6de3cc913b714e10d2fc14:/fdutils.pyx diff --git a/fdutils.pyx b/fdutils.pyx index 8e5d94a..68e0568 100644 --- a/fdutils.pyx +++ b/fdutils.pyx @@ -34,7 +34,7 @@ def fdflags(file, def fdsend(sock, file, buffer): cdef void *p - cdef int len + cdef Py_ssize_t len cdef int rc PyObject_AsReadBuffer(buffer, &p, &len) rc = fdpass_send(_getfd(sock), _getfd(file), p, len) @@ -45,7 +45,7 @@ def fdsend(sock, file, buffer): def fdrecv(sock, unsigned size): cdef void *p cdef buf - cdef int len + cdef Py_ssize_t len cdef PyObject *obj cdef int fd buf = PyString_FromStringAndSize(NULL, size)