summaryrefslogtreecommitdiffstats
path: root/Vector.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-23 12:22:02 +0100
committerBenBE <BenBE@geshi.org>2023-12-26 15:14:19 +0100
commit6aa9ef2726e42c4ae062b55be4d5cc015767d997 (patch)
treed5bd033946b404fa99b70b0b1c560725cef302bf /Vector.c
parenta98fc47ffe67e88b1a83f94382795b8787a9bfe8 (diff)
Fix code style
Diffstat (limited to 'Vector.c')
-rw-r--r--Vector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Vector.c b/Vector.c
index 15133dc5..0e08c650 100644
--- a/Vector.c
+++ b/Vector.c
@@ -103,7 +103,7 @@ void Vector_prune(Vector* this) {
this->items = 0;
this->dirty_index = -1;
this->dirty_count = 0;
- memset(this->array, '\0', this->arraySize * sizeof(Object *));
+ memset(this->array, '\0', this->arraySize * sizeof(Object*));
}
//static int comparisons = 0;
@@ -200,7 +200,7 @@ static void Vector_resizeIfNecessary(Vector* this, int newSize) {
assert(Vector_isConsistent(this));
int oldSize = this->arraySize;
this->arraySize = newSize + this->growthRate;
- this->array = (Object **)xReallocArrayZero(this->array, oldSize, this->arraySize, sizeof(Object*));
+ this->array = (Object**)xReallocArrayZero(this->array, oldSize, this->arraySize, sizeof(Object*));
}
assert(Vector_isConsistent(this));
}

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