summaryrefslogtreecommitdiff
path: root/numpy/core/src/arraymethods.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-03-06 23:33:05 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-03-06 23:33:05 +0000
commit5bb7342c6c2fa9757edc28df0dbbc8d433ac50d8 (patch)
tree94fcabc7add4b4964b354b3d05852695df571213 /numpy/core/src/arraymethods.c
parent819578a1b2d5f9adf9ab6719e8b9b425c5ca7e00 (diff)
downloadnumpy-5bb7342c6c2fa9757edc28df0dbbc8d433ac50d8.tar.gz
Fix pickling of fortran arrays (defect #16)
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r--numpy/core/src/arraymethods.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c
index bf64fd6c6..c48904f25 100644
--- a/numpy/core/src/arraymethods.c
+++ b/numpy/core/src/arraymethods.c
@@ -1039,7 +1039,8 @@ array_setstate(PyArrayObject *self, PyObject *args)
self->strides = self->dimensions + nd;
memcpy(self->dimensions, dimensions, sizeof(intp)*nd);
(void) _array_fill_strides(self->strides, dimensions, nd,
- self->descr->elsize, fortran,
+ self->descr->elsize,
+ (fortran ? FORTRAN : CONTIGUOUS),
&(self->flags));
}