}
/* Remember the old size, leftblock, and leftindex */
+ n = Py_SIZE(deque);
leftblock = deque->leftblock;
leftindex = deque->leftindex;
- n = Py_SIZE(deque);
/* Set the deque to be empty using the newly allocated block */
MARK_END(b->leftlink);
*/
m = (BLOCKLEN - leftindex > n) ? n : BLOCKLEN - leftindex;
itemptr = &leftblock->data[leftindex];
- limit = &leftblock->data[leftindex + m];
+ limit = itemptr + m;
n -= m;
while (1) {
if (itemptr == limit) {
leftblock = leftblock->rightlink;
m = (n > BLOCKLEN) ? BLOCKLEN : n;
itemptr = leftblock->data;
- limit = &leftblock->data[m];
+ limit = itemptr + m;
n -= m;
freeblock(prevblock);
}