diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-01-04 00:12:48 +0100 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-01-04 12:54:41 +0100 |
commit | 57330377d914e163389d66cf644915f851f37242 (patch) | |
tree | 3c8b2f1571c0471c572e27af825c93072100affc | |
parent | 1ffe713c551707cb8edff9e401b5be5911fe5a06 (diff) | |
download | numpy-57330377d914e163389d66cf644915f851f37242.tar.gz |
BUG: return immediately if memoryview cannot be non-native
late return triggers an assert with python3.4 in debug mode.
Closes gh-4138.
-rw-r--r-- | numpy/core/src/multiarray/buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/buffer.c b/numpy/core/src/multiarray/buffer.c index 975891b3a..b25613fd0 100644 --- a/numpy/core/src/multiarray/buffer.c +++ b/numpy/core/src/multiarray/buffer.c @@ -339,6 +339,7 @@ _buffer_format_string(PyArray_Descr *descr, _tmp_string_t *str, "cannot expose native-only dtype '%c' in " "non-native byte order '%c' via buffer interface", descr->type, descr->byteorder); + return -1; } } |