X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib-python/blobdiff_plain/78911cdb6782ddccef6de3cc913b714e10d2fc14..704500e11c6a7e240acc047607d34bc6db520f15:/crc32.pyx diff --git a/crc32.pyx b/crc32.pyx index 5584df2..c1f3b82 100644 --- a/crc32.pyx +++ b/crc32.pyx @@ -32,7 +32,7 @@ cdef class CRC32: def chunk(me, data): cdef void *p cdef Py_ssize_t n - PyObject_AsReadBuffer(data, &p, &n) + PyObject_AsReadBuffer(data, &p, &n) me._a = c_crc32(me._a, p, n) return me def done(me): @@ -42,7 +42,7 @@ def crc32(data): cdef void *p cdef Py_ssize_t n cdef uint32 c - PyObject_AsReadBuffer(data, &p, &n) + PyObject_AsReadBuffer(data, &p, &n) c = c_crc32(0, p, n) return _u32(c)