aboutsummaryrefslogtreecommitdiff
path: root/src/arraylist.c
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2022-07-15 10:36:58 +0200
committerThomas Schmucker <ts@its1.de>2022-07-15 10:36:58 +0200
commitd32a0b27b5d2826db04060dbe296db59fcf85676 (patch)
treeffc0d462f0785b83913a296581418ce0605e8746 /src/arraylist.c
parent690fdf2ca329af6c1683507f2f51560d8e00f6c1 (diff)
downloaddata-structures-d32a0b27b5d2826db04060dbe296db59fcf85676.tar.gz
data-structures-d32a0b27b5d2826db04060dbe296db59fcf85676.tar.bz2
data-structures-d32a0b27b5d2826db04060dbe296db59fcf85676.zip
fix: entferne überflüssige Klammern um Ausdruck
Diffstat (limited to 'src/arraylist.c')
-rw-r--r--src/arraylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arraylist.c b/src/arraylist.c
index f010d07..0db35ad 100644
--- a/src/arraylist.c
+++ b/src/arraylist.c
@@ -82,7 +82,7 @@ ArrayList_growIfNeeded(struct ArrayList *arrayList)
82 arrayList->array = ArrayList_allocateArray(NULL, DEFAULT_CAPACITY); 82 arrayList->array = ArrayList_allocateArray(NULL, DEFAULT_CAPACITY);
83 } 83 }
84 else { 84 else {
85 size_t new_capacity = (arrayList->capacity * 3) / 2; // *= 1.5 85 size_t new_capacity = arrayList->capacity * 3 / 2; // *= 1.5
86 T ** new_arrayList = ArrayList_allocateArray(arrayList->array, new_capacity); 86 T ** new_arrayList = ArrayList_allocateArray(arrayList->array, new_capacity);
87 87
88 arrayList->capacity = new_capacity; 88 arrayList->capacity = new_capacity;