diff options
author | Lukas Beckmann <lbckmnn@mailbox.org> | 2023-02-18 21:13:02 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2023-04-05 01:18:57 +0200 |
commit | c707b0eb52c95930496325cedd23a4f14f47e65b (patch) | |
tree | c02222fe9af8210f2f69a8c7f75f719fd0b80af3 /Vector.c | |
parent | 61e7cb17a2fb0e28ae95c440544c1529d363f8bf (diff) |
fix some assertions in Vector_isConsistent and Vector_splice.
Diffstat (limited to 'Vector.c')
-rw-r--r-- | Vector.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -62,14 +62,6 @@ static bool Vector_isConsistent(const Vector* this) { assert(this->items <= this->arraySize); assert(!Vector_isDirty(this)); - if (this->owner) { - for (int i = 0; i < this->items; i++) { - if (!this->array[i]) { - return false; - } - } - } - return true; } @@ -396,7 +388,7 @@ int Vector_indexOf(const Vector* this, const void* search_, Object_Compare compa void Vector_splice(Vector* this, Vector* from) { assert(Vector_isConsistent(this)); assert(Vector_isConsistent(from)); - assert(!(this->owner && from->owner)); + assert(!this->owner); int olditems = this->items; this->items += from->items; |