Deque uses "len" instead of varhead in Py2.7

This commit is contained in:
Raymond Hettinger 2015-11-12 07:18:45 -08:00
parent fedcf9474e
commit 3a75403880
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ deque_clear(dequeobject *deque)
Py_ssize_t n;
PyObject *item;
if (Py_SIZE(deque) == 0)
if (deque->len == 0)
return;
/* During the process of clearing a deque, decrefs can cause the