diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-02-28 10:46:00 -0500 |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2015-02-28 10:46:00 -0500 |
commit | e92951f8da5747f5fd00c7388d9fd8e811422cb3 (patch) | |
tree | 3b02c301b935bd413c228cd91fbc1c545a5d9d5b | |
parent | 184291aeb74249e644b3df581d240811e4b8a6e2 (diff) | |
parent | 63d1ff2a0b5d6d1287472dcc18ed83569f7c1096 (diff) | |
download | cpython-git-e92951f8da5747f5fd00c7388d9fd8e811422cb3.tar.gz |
merge
-rw-r--r-- | Modules/_collectionsmodule.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 8494a47d87..d12f0e8769 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -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; |