[Python-checkins] r52159 - python/branches/release24-maint/Modules/collectionsmodule.c
andrew.kuchling
python-checkins at python.org
Thu Oct 5 19:07:00 CEST 2006
Author: andrew.kuchling
Date: Thu Oct 5 19:06:59 2006
New Revision: 52159
Modified:
python/branches/release24-maint/Modules/collectionsmodule.c
Log:
[Backport r51255 | neal.norwitz]
Really address the issue of where to place the assert for leftblock.
(Followup of Klocwork 274)
Modified: python/branches/release24-maint/Modules/collectionsmodule.c
==============================================================================
--- python/branches/release24-maint/Modules/collectionsmodule.c (original)
+++ python/branches/release24-maint/Modules/collectionsmodule.c Thu Oct 5 19:06:59 2006
@@ -211,6 +211,7 @@
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--;
More information about the Python-checkins
mailing list