*.pyx, defs.pxi, *.c: Fixes for 64-bit builds.
[mLib-python] / sym.pyx
diff --git a/sym.pyx b/sym.pyx
index e8842e6..9e97b7b 100644 (file)
--- a/sym.pyx
+++ b/sym.pyx
@@ -34,7 +34,7 @@ cdef class SymTable (Mapping):
     return 0
   cdef void *_find(me, object key, unsigned *f) except NULL:
     cdef void *p
-    cdef int n
+    cdef Py_ssize_t n
     cdef _sym_entry *e
     PyObject_AsReadBuffer(key, &p, &n)
     if f: