*.pyx, defs.pxi, grim.h: Add awful casts to `PyObject_AsReadBuffer'.
[mLib-python] / unihash.pyx
index 74217e8..de6f3d4 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)