commit | e92951f8da5747f5fd00c7388d9fd8e811422cb3 | [log] [tgz] |
---|---|---|
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Sat Feb 28 10:46:00 2015 -0500 |
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Sat Feb 28 10:46:00 2015 -0500 |
tree | 3b02c301b935bd413c228cd91fbc1c545a5d9d5b | |
parent | 184291aeb74249e644b3df581d240811e4b8a6e2 [diff] | |
parent | 63d1ff2a0b5d6d1287472dcc18ed83569f7c1096 [diff] |
merge
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 8494a47..d12f0e8 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c
@@ -788,7 +788,9 @@ 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;