Skip to content

Commit 295ea6e

Browse files
committed
gh-137696: update PyBuffer_FillContiguousStrides, rename fort parameter to order
1 parent c89a638 commit 295ea6e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Include/pybuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ PyAPI_FUNC(void) PyBuffer_FillContiguousStrides(int ndims,
8787
Py_ssize_t *shape,
8888
Py_ssize_t *strides,
8989
int itemsize,
90-
char fort);
90+
char order);
9191

9292
/* Fills in a buffer-info structure correctly for an exporter
9393
that can only share a contiguous chunk of memory of

Objects/abstract.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,13 +749,13 @@ int PyObject_CopyData(PyObject *dest, PyObject *src)
749749
void
750750
PyBuffer_FillContiguousStrides(int nd, Py_ssize_t *shape,
751751
Py_ssize_t *strides, int itemsize,
752-
char fort)
752+
char order)
753753
{
754754
int k;
755755
Py_ssize_t sd;
756756

757757
sd = itemsize;
758-
if (fort == 'F') {
758+
if (order == 'F') {
759759
for (k=0; k<nd; k++) {
760760
strides[k] = sd;
761761
sd *= shape[k];

0 commit comments

Comments
 (0)