Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87298c4

Browse files
committed
No declarations in the middle of a block (fixes compile under Windows)
1 parent 4d80766 commit 87298c4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/operator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,15 +428,15 @@ attrgetter_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
428428
} else { /* make it a tuple of non-dotted attrnames */
429429
PyObject *attr_chain = PyTuple_New(dot_count + 1);
430430
PyObject *attr_chain_item;
431+
Py_ssize_t unibuff_from = 0;
432+
Py_ssize_t unibuff_till = 0;
433+
Py_ssize_t attr_chain_idx = 0;
431434

432435
if (attr_chain == NULL) {
433436
Py_DECREF(attr);
434437
return NULL;
435438
}
436439

437-
Py_ssize_t unibuff_from = 0;
438-
Py_ssize_t unibuff_till = 0;
439-
Py_ssize_t attr_chain_idx = 0;
440440
for (; dot_count > 0; --dot_count) {
441441
while (item_buffer[unibuff_till] != (Py_UNICODE)'.') {
442442
++unibuff_till;

0 commit comments

Comments
 (0)