~mdw
/
mLib-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*.pyx, defs.pxi, grim.h: Add awful casts to `PyObject_AsReadBuffer'.
[mLib-python]
/
fdutils.pyx
diff --git
a/fdutils.pyx
b/fdutils.pyx
index
68e0568
..
bb28188
100644
(file)
--- a/
fdutils.pyx
+++ b/
fdutils.pyx
@@
-36,7
+36,7
@@
def fdsend(sock, file, buffer):
cdef void *p
cdef Py_ssize_t len
cdef int rc
- PyObject_AsReadBuffer(buffer, &p, &len)
+ PyObject_AsReadBuffer(buffer,
<cvp *>
&p, &len)
rc = fdpass_send(_getfd(sock), _getfd(file), p, len)
if rc < 0:
_oserror()