From 59c3dd806b910a08e696eca5507b22d3de88f25e Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 8 Nov 2006 21:47:11 +0000 Subject: Yet another sanity check. --- Vector.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Vector.c') diff --git a/Vector.c b/Vector.c index 4ad697cb..0ee290a8 100644 --- a/Vector.c +++ b/Vector.c @@ -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) -- cgit v1.2.3