diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-15 16:19:18 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-15 16:19:18 (GMT) |
commit | 5863a396035e1b0bd46d201c7511c2b90c4c1c20 (patch) | |
tree | 3454fd8f893b47e302bcd6354e5cb5add42a8dff /Modules | |
parent | f2fa17ce2a4cebad09d9fc9680e22b06fae81764 (diff) | |
download | cpython-5863a396035e1b0bd46d201c7511c2b90c4c1c20.zip cpython-5863a396035e1b0bd46d201c7511c2b90c4c1c20.tar.gz cpython-5863a396035e1b0bd46d201c7511c2b90c4c1c20.tar.bz2 |
deque is not varsized, so using Py_SIZE is nonsensical (closes #24162)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_collectionsmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |