diff options
author | Raymond Hettinger <python@rcn.com> | 2015-07-20 00:25:50 -0400 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-07-20 00:25:50 -0400 |
commit | cfe5b6ca04a14ef1ba42e78bf6da05cfa9c0b66b (patch) | |
tree | 6b54b92e45cbb3a21c1679a7bcabc38413203991 /Modules/_collectionsmodule.c | |
parent | 498b5e98e9aaf5057d73cda1940b9c2d93305455 (diff) | |
download | cpython-git-cfe5b6ca04a14ef1ba42e78bf6da05cfa9c0b66b.tar.gz |
Divisions-by-two for a positive Py_ssize_t compile more cleanly with >>1 than /2.
Diffstat (limited to 'Modules/_collectionsmodule.c')
-rw-r--r-- | Modules/_collectionsmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index c1fd8b9d9b..47db46f86b 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -788,7 +788,7 @@ deque_reverse(dequeobject *deque, PyObject *unused) block *rightblock = deque->rightblock; Py_ssize_t leftindex = deque->leftindex; Py_ssize_t rightindex = deque->rightindex; - Py_ssize_t n = Py_SIZE(deque) / 2; + Py_ssize_t n = Py_SIZE(deque) >> 1; Py_ssize_t i; PyObject *tmp; |