diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-01 06:49:10 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-01 06:49:10 +0000 |
commit | 6fd31c330e6572963a03b71bcd479dbedd153ac8 (patch) | |
tree | fbf440a9710b74562156e3218b595b1d78e0b74f /numpy/core/src/arraymethods.c | |
parent | 3f8c2dea68dd5d8b437a02f002836f09644e5c3f (diff) | |
download | numpy-6fd31c330e6572963a03b71bcd479dbedd153ac8.tar.gz |
Remove bigndarray because Python SVN has support for 64-bit indexing.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r-- | numpy/core/src/arraymethods.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c index 5d1ac1f18..bf64fd6c6 100644 --- a/numpy/core/src/arraymethods.c +++ b/numpy/core/src/arraymethods.c @@ -166,9 +166,9 @@ array_view(PyArrayObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "|O", &otype)) return NULL; if (otype) { - if (PyType_Check(otype) && \ + if (PyType_Check(otype) && \ PyType_IsSubtype((PyTypeObject *)otype, - &PyBigArray_Type)) { + &PyArray_Type)) { return PyArray_View(self, NULL, (PyTypeObject *)otype); } @@ -604,13 +604,13 @@ array_getarray(PyArrayObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "|O&", PyArray_DescrConverter, &newtype)) return NULL; - /* convert to PyArray_Type or PyBigArray_Type */ - if (!PyArray_CheckExact(self) || !PyBigArray_CheckExact(self)) { + /* convert to PyArray_Type */ + if (!PyArray_CheckExact(self)) { PyObject *new; PyTypeObject *subtype = &PyArray_Type; if (!PyType_IsSubtype(self->ob_type, &PyArray_Type)) { - subtype = &PyBigArray_Type; + subtype = &PyArray_Type; } Py_INCREF(PyArray_DESCR(self)); |