diff options
| author | Andrew M. Kuchling <amk@amk.ca> | 2006-10-05 17:06:59 +0000 |
|---|---|---|
| committer | Andrew M. Kuchling <amk@amk.ca> | 2006-10-05 17:06:59 +0000 |
| commit | 68e1e0372baab7d9734c219258cf84c82e28ab9d (patch) | |
| tree | b2432329e8d078418a633dcb54e6042123c7e8f4 /Modules | |
| parent | c3554cd9cf398d3c77e2709ff20691b36c31f8dc (diff) | |
| download | cpython-git-68e1e0372baab7d9734c219258cf84c82e28ab9d.tar.gz | |
[Backport r51255 | neal.norwitz]
Really address the issue of where to place the assert for leftblock.
(Followup of Klocwork 274)
Diffstat (limited to 'Modules')
| -rw-r--r-- | Modules/collectionsmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/collectionsmodule.c b/Modules/collectionsmodule.c index 1cceb4f587..4457551bb0 100644 --- a/Modules/collectionsmodule.c +++ b/Modules/collectionsmodule.c @@ -211,6 +211,7 @@ deque_popleft(dequeobject *deque, PyObject *unused) PyErr_SetString(PyExc_IndexError, "pop from an empty deque"); return NULL; } + assert(deque->leftblock != NULL); item = deque->leftblock->data[deque->leftindex]; deque->leftindex++; deque->len--; |
