diff options
author | Raymond Hettinger <python@rcn.com> | 2015-09-26 21:11:05 -0700 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-09-26 21:11:05 -0700 |
commit | dd8b86d4630db033d3c52b22efb2f037c7f5ba8e (patch) | |
tree | 26c0a9b33a26ca51c653ff4649d70532506ba192 /Modules | |
parent | a31ee43653a2c3ca4abb98bc113bb0fb3099e030 (diff) | |
download | cpython-dd8b86d4630db033d3c52b22efb2f037c7f5ba8e.tar.gz |
Minor tweak to the order of variable updates.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_collectionsmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 9210e24b2e..66c2a7458a 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -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); |