summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2009-03-04 17:14:10 +0000
committerTravis Oliphant <oliphant@enthought.com>2009-03-04 17:14:10 +0000
commitac6175fedfe335acb652f8ea5eaf000653041803 (patch)
treea9b00487aa62926e8a44144ef5bb1c85efd5922c /numpy/core/src/arrayobject.c
parent8fb48b7752e891226265da0d7108b69782b22213 (diff)
downloadnumpy-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.c12
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