chiark
/
gitweb
/
~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]
/
unihash.pyx
diff --git
a/unihash.pyx
b/unihash.pyx
index 74217e83a8416189797c1c2d4ce887c719349e89..de6f3d45a7c1600760d5edd88f005373d359640e 100644
(file)
--- a/
unihash.pyx
+++ b/
unihash.pyx
@@
-52,7
+52,7
@@
cdef class Unihash:
def chunk(me, data):
cdef void *p
cdef Py_ssize_t n
def chunk(me, data):
cdef void *p
cdef Py_ssize_t n
- PyObject_AsReadBuffer(data, &p, &n)
+ PyObject_AsReadBuffer(data,
<cvp *>
&p, &n)
me._a = unihash_hash(me._i, me._a, p, n)
def done(me):
return _u32(me._a)
me._a = unihash_hash(me._i, me._a, p, n)
def done(me):
return _u32(me._a)