This commit is contained in:
Alexander Belopolsky 2015-02-28 10:46:00 -05:00
commit e92951f8da
1 changed files with 3 additions and 1 deletions

View File

@ -788,7 +788,9 @@ deque_item(dequeobject *deque, Py_ssize_t i)
while (n--)
b = b->rightlink;
} else {
n = (deque->leftindex + Py_SIZE(deque) - 1) / BLOCKLEN - n;
n = (Py_ssize_t)(
((unsigned)(deque->leftindex + Py_SIZE(deque) - 1))
/ BLOCKLEN - n);
b = deque->rightblock;
while (n--)
b = b->leftlink;