Skip to content

Commit 4d9135e

Browse files
committed
gh-137696: update PyBuffer_FillContiguousStrides, rename fort parameter to order
1 parent 0fee5e7 commit 4d9135e

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
@@ -741,13 +741,13 @@ int PyObject_CopyData(PyObject *dest, PyObject *src)
741741
void
742742
PyBuffer_FillContiguousStrides(int nd, Py_ssize_t *shape,
743743
Py_ssize_t *strides, int itemsize,
744-
char fort)
744+
char order)
745745
{
746746
int k;
747747
Py_ssize_t sd;
748748

749749
sd = itemsize;
750-
if (fort == 'F') {
750+
if (order == 'F') {
751751
for (k=0; k<nd; k++) {
752752
strides[k] = sd;
753753
sd *= shape[k];

0 commit comments

Comments
 (0)