Skip to content
Snippets Groups Projects
Commit d9dce574 authored by florian.burgener's avatar florian.burgener
Browse files

Rewrite arrays

parent 2bb9bc1f
Branches
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ void IntegerArray_append(IntegerArray *array, uint64_t item) {
array->size++;
}
static _IntegerArray_find_index(IntegerArray *array, uint64_t item) {
static int _IntegerArray_find_index(IntegerArray *array, uint64_t item) {
int low = 0;
int high = array->size - 1;
......@@ -103,7 +103,7 @@ void IntegerArray_print(IntegerArray *array) {
BPTreeNodeArray *BPTreeNodeArray_init(int capacity) {
BPTreeNodeArray *array = (BPTreeNodeArray *)malloc(sizeof(BPTreeNodeArray));
array->items = (BPTreeNodeArray **)malloc(sizeof(BPTreeNodeArray *) * capacity);
array->items = (BPTreeNode **)malloc(sizeof(BPTreeNode *) * capacity);
array->size = 0;
return array;
}
......
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment