summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-04-12 13:29:56 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2013-04-12 13:29:56 +0200
commit07ed3a2defe68738ec89daf88e0a0e2e697a9182 (patch)
treebef14e2a6fb85a26eea500f13a56fd187b09cae2 /numpy
parent8468a7580e9c87d31921881e54965ac7a4aeef7c (diff)
downloadnumpy-07ed3a2defe68738ec89daf88e0a0e2e697a9182.tar.gz
STY: Use PyArray_BYTES to get char*
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/mapping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/src/multiarray/mapping.c b/numpy/core/src/multiarray/mapping.c
index 5f6d799e7..fb01f20e3 100644
--- a/numpy/core/src/multiarray/mapping.c
+++ b/numpy/core/src/multiarray/mapping.c
@@ -1082,7 +1082,7 @@ array_subscript_fromobject(PyArrayObject *self, PyObject *op)
int idim, ndim = PyArray_NDIM(self);
npy_intp *shape = PyArray_DIMS(self);
npy_intp *strides = PyArray_STRIDES(self);
- char *item = PyArray_DATA(self);
+ char *item = PyArray_BYTES(self);
for (idim = 0; idim < ndim; idim++) {
npy_intp v = vals[idim];
if (check_and_adjust_index(&v, shape[idim], idim) < 0) {
@@ -1483,7 +1483,7 @@ array_ass_sub(PyArrayObject *self, PyObject *ind, PyObject *op)
int idim, ndim = PyArray_NDIM(self);
npy_intp *shape = PyArray_DIMS(self);
npy_intp *strides = PyArray_STRIDES(self);
- char *item = PyArray_DATA(self);
+ char *item = PyArray_BYTES(self);
for (idim = 0; idim < ndim; idim++) {
npy_intp v = vals[idim];
if (check_and_adjust_index(&v, shape[idim], idim) < 0) {