summaryrefslogtreecommitdiffstats
path: root/Vector.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2006-11-08 21:47:11 +0000
committerHisham Muhammad <hisham@gobolinux.org>2006-11-08 21:47:11 +0000
commit59c3dd806b910a08e696eca5507b22d3de88f25e (patch)
treeb98c0568bd494cad4f665a0b4db3f9171c6b878f /Vector.c
parentc494308b214c30f9348727aafaab0c9f55d5a4aa (diff)
Yet another sanity check.
Diffstat (limited to 'Vector.c')
-rw-r--r--Vector.c1
1 files changed, 1 insertions, 0 deletions
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)

© 2014-2024 Faster IT GmbH | imprint | privacy policy