summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/multiarraymodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c
index 8afdb3855..5776c9fa6 100644
--- a/numpy/core/src/multiarraymodule.c
+++ b/numpy/core/src/multiarraymodule.c
@@ -93,7 +93,7 @@ PyArray_MultiplyList(register intp *l1, register int n)
/*MULTIARRAY_API
Produce a pointer into array
*/
-static char *
+static void *
PyArray_GetPtr(PyArrayObject *obj, register intp* ind)
{
register int n = obj->nd;
@@ -101,7 +101,7 @@ PyArray_GetPtr(PyArrayObject *obj, register intp* ind)
register char *dptr = obj->data;
while (n--) dptr += (*strides++) * (*ind++);
- return dptr;
+ return (void *)dptr;
}
/*MULTIARRAY_API