catacomb.c, ec.c, group.c, mp.c: Count base/exponent pairs with `size_t'.
[catacomb-python] / catacomb.c
index d994347..1f38213 100644 (file)
@@ -35,10 +35,11 @@ PyObject *mexp_common(PyObject *me, PyObject *arg,
                      PyObject *(*id)(PyObject *),
                      int (*fill)(void *, PyObject *,
                                  PyObject *, PyObject *),
-                     PyObject *(*exp)(PyObject *, void *, int),
+                     PyObject *(*exp)(PyObject *, void *, size_t),
                      void (*drop)(void *))
 {
-  int i = 0, j, n, flat;
+  size_t i = 0, j, n;
+  int flat;
   PyObject *qq, *x, *y, *z = 0;
   char *v = 0, *vv;