summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
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--) {