stuff (nearly crashing)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "SolsNode.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "../include/error.h"
|
||||
#include "../lexer/SolsLiteral.h"
|
||||
@@ -54,7 +55,8 @@ ResultType(Nothing, charptr) addChildToSolsNode(SolsNode* parent, SolsNode child
|
||||
}
|
||||
parent->children.at = tmp;
|
||||
}
|
||||
parent->children.at[parent->children.capacity] = child;
|
||||
parent->children.capacity++;
|
||||
printf("capacity: %zu, count: %zu\n", parent->children.capacity, parent->children.count);
|
||||
parent->children.at[parent->children.count] = child;
|
||||
parent->children.count++;
|
||||
return Success(Nothing, charptr, {});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user