Yet another sanity check.

This commit is contained in:
Hisham Muhammad 2006-11-08 21:47:11 +00:00
parent c494308b21
commit 59c3dd806b

View File

@ -63,6 +63,7 @@ void Vector_delete(Vector* this) {
#ifdef DEBUG
static inline bool Vector_isConsistent(Vector* this) {
assert(this->items <= this->arraySize);
if (this->owner) {
for (int i = 0; i < this->items; i++)
if (this->array[i] && this->array[i]->class != this->vectorType)