mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Minor tweak to the order of variable updates.
This commit is contained in:
parent
f2b02ced7e
commit
7c0b70f419
1 changed files with 2 additions and 2 deletions
|
|
@ -315,8 +315,8 @@ deque_append(dequeobject *deque, PyObject *item)
|
|||
MARK_END(b->rightlink);
|
||||
deque->rightindex = -1;
|
||||
}
|
||||
Py_INCREF(item);
|
||||
Py_SIZE(deque)++;
|
||||
Py_INCREF(item);
|
||||
deque->rightindex++;
|
||||
deque->rightblock->data[deque->rightindex] = item;
|
||||
deque_trim_left(deque);
|
||||
|
|
@ -340,8 +340,8 @@ deque_appendleft(dequeobject *deque, PyObject *item)
|
|||
MARK_END(b->leftlink);
|
||||
deque->leftindex = BLOCKLEN;
|
||||
}
|
||||
Py_INCREF(item);
|
||||
Py_SIZE(deque)++;
|
||||
Py_INCREF(item);
|
||||
deque->leftindex--;
|
||||
deque->leftblock->data[deque->leftindex] = item;
|
||||
deque_trim_right(deque);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue