diff options
| author | Pearu Peterson <pearu.peterson@gmail.com> | 2021-05-26 14:57:08 +0300 |
|---|---|---|
| committer | Pearu Peterson <pearu.peterson@gmail.com> | 2021-05-26 14:57:08 +0300 |
| commit | 870bf6c8a70d047d8b48706a180f2c6d90ce2952 (patch) | |
| tree | ea376500347ce4cd2599edaebf310fe3adfd842b /numpy | |
| parent | 8c6e74de6b3833c6230e930503f44734c4ec370b (diff) | |
| download | numpy-870bf6c8a70d047d8b48706a180f2c6d90ce2952.tar.gz | |
Add internal check for array contiguity.
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/f2py/cfuncs.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/f2py/cfuncs.py b/numpy/f2py/cfuncs.py index 6b7039436..19c5363e4 100644 --- a/numpy/f2py/cfuncs.py +++ b/numpy/f2py/cfuncs.py @@ -638,6 +638,7 @@ fprintf(stderr, "try_pyarr_from_string(str='%s', len=%d, obj=%p)\\n", #endif if (PyArray_Check(obj)) { PyArrayObject *arr = (PyArrayObject *)obj; + assert(ISCONTIGUOUS(arr)); string buf = PyArray_DATA(arr); npy_intp n = len; if (n == -1) { |
