mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Divisions-by-two for a positive Py_ssize_t compile more cleanly with >>1 than /2.
This commit is contained in:
parent
498b5e98e9
commit
cfe5b6ca04
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue