Commit f358d2b2 authored by Raymond Hettinger's avatar Raymond Hettinger

Second instance of deque needing "len" instead of "Py_SIZE" in Py2.7

parent 4b4f0b99
......@@ -1086,7 +1086,7 @@ deque_init(dequeobject *deque, PyObject *args, PyObject *kwdargs)
}
}
deque->maxlen = maxlen;
if (Py_SIZE(deque) > 0)
if (deque->len > 0)
deque_clear(deque);
if (iterable != NULL) {
PyObject *rv = deque_extend(deque, iterable);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment