diff options
author | Raymond Hettinger <python@rcn.com> | 2015-09-27 04:11:05 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-09-27 04:11:05 (GMT) |
commit | 7c0b70f41910fb70432f32f8ed263a56110a5525 (patch) | |
tree | 5d9b615b051a724cf22f16f5ea42f30e3ae51a44 | |
parent | f2b02ced7edfa30e3ee5f15abcdd8f45b36476f5 (diff) | |
download | cpython-7c0b70f41910fb70432f32f8ed263a56110a5525.zip cpython-7c0b70f41910fb70432f32f8ed263a56110a5525.tar.gz cpython-7c0b70f41910fb70432f32f8ed263a56110a5525.tar.bz2 |
Minor tweak to the order of variable updates.
-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 9210e24..66c2a74 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); |