diff options
author | Stefan Krah <skrah@bytereef.org> | 2012-07-28 10:25:55 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2012-07-28 10:25:55 (GMT) |
commit | 7d12d9df136b45785fb945dcb4812fdb068a2498 (patch) | |
tree | a68da71ef9e618cad72d9d6b589d6bdbc589873e /Include | |
parent | 6c779ea55329947577119b8a7ea732f6d540d516 (diff) | |
download | cpython-7d12d9df136b45785fb945dcb4812fdb068a2498.zip cpython-7d12d9df136b45785fb945dcb4812fdb068a2498.tar.gz cpython-7d12d9df136b45785fb945dcb4812fdb068a2498.tar.bz2 |
Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/abstract.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Include/abstract.h b/Include/abstract.h index e879fa1b..44b5af7 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -535,11 +535,12 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ + /* Implementation in memoryobject.c */ PyAPI_FUNC(int) PyBuffer_ToContiguous(void *buf, Py_buffer *view, - Py_ssize_t len, char fort); + Py_ssize_t len, char order); PyAPI_FUNC(int) PyBuffer_FromContiguous(Py_buffer *view, void *buf, - Py_ssize_t len, char fort); + Py_ssize_t len, char order); /* Copy len bytes of data from the contiguous chunk of memory |