Commit 50cef523 authored by vyas45's avatar vyas45 Committed by Berker Peksag

[2.7] bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993)

parent 9aa60245
...@@ -278,7 +278,7 @@ Buffer related functions ...@@ -278,7 +278,7 @@ Buffer related functions
(*fortran* is ``'A'``). Return ``0`` otherwise. (*fortran* is ``'A'``). Return ``0`` otherwise.
.. c:function:: void PyBuffer_FillContiguousStrides(int ndim, Py_ssize_t *shape, Py_ssize_t *strides, Py_ssize_t itemsize, char fortran) .. c:function:: void PyBuffer_FillContiguousStrides(int ndims, Py_ssize_t *shape, Py_ssize_t *strides, int itemsize, char fortran)
Fill the *strides* array with byte-strides of a contiguous (C-style if Fill the *strides* array with byte-strides of a contiguous (C-style if
*fortran* is ``'C'`` or Fortran-style if *fortran* is ``'F'``) array of the *fortran* is ``'C'`` or Fortran-style if *fortran* is ``'F'``) array of the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment