diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-02-14 22:15:05 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-02-14 22:15:05 +0000 |
commit | 263df7516f66a53dd9a93f6cd08ce98e30ad0eca (patch) | |
tree | 6f709f00e6fa5573cfa897be3e826ddbea5b3777 /numpy/core/src | |
parent | 3faeb7eb7d496991eaa55996c6a9ada2248a2b29 (diff) | |
download | numpy-263df7516f66a53dd9a93f6cd08ce98e30ad0eca.tar.gz |
Make Getptr function and macros return void *
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/multiarraymodule.c | 4 |
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 |