chiark / gitweb /
selpk.pyx: Fix bad cut-and-paste in the callback property.
[mLib-python] / unihash.pyx
index 74217e83a8416189797c1c2d4ce887c719349e89..de6f3d45a7c1600760d5edd88f005373d359640e 100644 (file)
@@ -52,7 +52,7 @@ cdef class Unihash:
   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)