mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
merge
This commit is contained in:
commit
7a1a0bbbf1
3 changed files with 10 additions and 0 deletions
|
@ -924,6 +924,8 @@ deque_index(dequeobject *deque, PyObject *args)
|
|||
if (stop < 0)
|
||||
stop = 0;
|
||||
}
|
||||
if (stop > Py_SIZE(deque))
|
||||
stop = Py_SIZE(deque);
|
||||
|
||||
for (i=0 ; i<stop ; i++) {
|
||||
if (i >= start) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue