summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-03-01 06:10:17 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-03-01 06:10:17 +0000
commit3f8c2dea68dd5d8b437a02f002836f09644e5c3f (patch)
treeb77d3891d3073ef84d214d11f17f605633e16c3e /numpy/core/src/arrayobject.c
parent5f9949015822c662a8a5bd145f2aab08c2b3dfb2 (diff)
downloadnumpy-3f8c2dea68dd5d8b437a02f002836f09644e5c3f.tar.gz
Swap order of fill-function arguments and make ones use fill now.
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index cd83f31e1..fe53283a5 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -4112,7 +4112,7 @@ PyArray_FillWithScalar(PyArrayObject *arr, PyObject *obj)
arr->descr->f->fillwithscalar;
if (fillwithscalar && PyArray_ISALIGNED(arr)) {
copyswap(fromptr, NULL, swap, itemsize);
- fillwithscalar(toptr, size, itemsize, fromptr);
+ fillwithscalar(toptr, size, fromptr, arr);
}
else {
while (size--) {