summaryrefslogtreecommitdiff
path: root/numpy/core/src/ufuncobject.c
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2007-07-28 13:28:18 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2007-07-28 13:28:18 +0000
commit5f96d3eabf87cdddb3e38f2096d013ec17f9c2a9 (patch)
treef1dc45694d9bc1d778d226aa1875ca48c611d5f8 /numpy/core/src/ufuncobject.c
parent3aac6034b06074a6ae8e0666fb087a467d9166cf (diff)
downloadnumpy-5f96d3eabf87cdddb3e38f2096d013ec17f9c2a9.tar.gz
Fix more compiler warnings.
Diffstat (limited to 'numpy/core/src/ufuncobject.c')
-rw-r--r--numpy/core/src/ufuncobject.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/numpy/core/src/ufuncobject.c b/numpy/core/src/ufuncobject.c
index 36f48556d..a75e5a862 100644
--- a/numpy/core/src/ufuncobject.c
+++ b/numpy/core/src/ufuncobject.c
@@ -712,7 +712,7 @@ extract_specified_loop(PyUFuncObject *self, int *arg_types,
}
}
else if PyString_Check(type_tup) {
- int slen;
+ Py_ssize_t slen;
char *thestr;
slen = PyString_GET_SIZE(type_tup);
thestr = PyString_AS_STRING(type_tup);
@@ -1110,11 +1110,12 @@ _has_reflected_op(PyObject *op, char *name)
#undef _GETATTR_
-static int
+static Py_ssize_t
construct_arrays(PyUFuncLoopObject *loop, PyObject *args, PyArrayObject **mps,
PyObject *typetup)
{
- int nargs, i;
+ Py_ssize_t nargs;
+ int i;
int arg_types[NPY_MAXARGS];
PyArray_SCALARKIND scalars[NPY_MAXARGS];
PyArray_SCALARKIND maxarrkind, maxsckind, new;
@@ -2953,7 +2954,8 @@ PyUFunc_GenericReduction(PyUFuncObject *self, PyObject *args,
static void
_find_array_wrap(PyObject *args, PyObject **output_wrap, int nin, int nout)
{
- int nargs, i;
+ Py_ssize_t nargs;
+ int i;
int np = 0;
double priority, maxpriority;
PyObject *with_wrap[NPY_MAXARGS], *wraps[NPY_MAXARGS];