*.pyx, defs.pxi, *.c: Fixes for 64-bit builds.
[mLib-python] / lbuf.pyx
index b80b5cc..2793e47 100644 (file)
--- a/lbuf.pyx
+++ b/lbuf.pyx
@@ -93,7 +93,7 @@ cdef class LineBuffer:
       cdef char *p
       return lbuf_free(&me.b, &p)
   def flush(me, str):
-    cdef int len
+    cdef Py_ssize_t len
     cdef char *p
     cdef char *q
     cdef size_t n