Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 615e66b

Browse files
committed
Merge pull request numpy#6621 from charris/fix-swig-make_fortran
BUG: Fix swig make_fortran function.
2 parents 2bc5cb9 + cbfd937 commit 615e66b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/release/1.10.2-notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Issues Fixed
3232
* gh-6575 BUG: Split produces empty arrays with wrong number of dimensions
3333
* gh-6590 Fortran Array problem in numpy 1.10.
3434
* gh-6602 Random __all__ missing choice and dirichlet.
35+
* gh-6618 NPY_FORTRANORDER in make_fortran() in numpy.i
3536

3637
Merged PRs
3738
==========
@@ -67,6 +68,7 @@ The following PRs in master have been backported to 1.10.2
6768
* gh-6596 BUG: Fix swig for relaxed stride checking.
6869
* gh-6606 DOC: Update 1.10.2 release notes.
6970
* gh-6614 BUG: Add choice and dirichlet to numpy.random.__all__.
71+
* gh-6621 BUG: Fix swig make_fortran function.
7072

7173
Initial support for mingwpy was reverted as it was causing problems for
7274
non-windows builds.

tools/swig/numpy.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
Py_INCREF(array_descr(ary));
296296
result = (PyArrayObject*) PyArray_FromArray(ary,
297297
array_descr(ary),
298-
NPY_FORTRANORDER);
298+
NPY_ARRAY_F_CONTIGUOUS);
299299
*is_new_object = 1;
300300
}
301301
return result;

0 commit comments

Comments
 (0)