From 5863a396035e1b0bd46d201c7511c2b90c4c1c20 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 15 May 2015 12:19:18 -0400 Subject: deque is not varsized, so using Py_SIZE is nonsensical (closes #24162) --- Modules/_collectionsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index 1924374..5080a5b 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -708,7 +708,7 @@ deque_del_item(dequeobject *deque, Py_ssize_t i) PyObject *item; int rv; - assert (i >= 0 && i < Py_SIZE(deque)); + assert (i >= 0 && i < deque->len); if (_deque_rotate(deque, -i)) return -1; item = deque_popleft(deque, NULL); -- cgit v0.12