diff options
author | Travis Oliphant <oliphant@enthought.com> | 2009-03-04 17:14:10 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2009-03-04 17:14:10 +0000 |
commit | ac6175fedfe335acb652f8ea5eaf000653041803 (patch) | |
tree | a9b00487aa62926e8a44144ef5bb1c85efd5922c /numpy/core/src/arrayobject.c | |
parent | 8fb48b7752e891226265da0d7108b69782b22213 (diff) | |
download | numpy-ac6175fedfe335acb652f8ea5eaf000653041803.tar.gz |
Minor changes to DEV_README + fix to a 64-bit issue.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r-- | numpy/core/src/arrayobject.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c index 68180317e..3b818b224 100644 --- a/numpy/core/src/arrayobject.c +++ b/numpy/core/src/arrayobject.c @@ -6781,12 +6781,12 @@ array_data_get(PyArrayObject *self) return NULL; } nbytes = PyArray_NBYTES(self); - if PyArray_ISWRITEABLE(self) { - return PyBuffer_FromReadWriteObject((PyObject *)self, 0, (int) nbytes); - } - else { - return PyBuffer_FromObject((PyObject *)self, 0, (int) nbytes); - } + if PyArray_ISWRITEABLE(self) + return PyBuffer_FromReadWriteObject((PyObject *)self, 0, + (Py_ssize_t) nbytes); + else + return PyBuffer_FromObject((PyObject *)self, 0, + (Py_ssize_t) nbytes); } static int |