Minor changes to StringMap allocation

This commit is contained in:
gingerBill
2023-01-14 12:58:45 +00:00
parent 1ab90de493
commit 868aa4c14a
3 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ gb_internal Array<Ast *> clone_ast_array(Array<Ast *> const &array, AstFile *f)
gb_internal Slice<Ast *> clone_ast_array(Slice<Ast *> const &array, AstFile *f) {
Slice<Ast *> result = {};
if (array.count > 0) {
result = slice_clone(permanent_allocator(), array);
result = slice_clone(ast_allocator(nullptr), array);
for_array(i, array) {
result[i] = clone_ast(array[i], f);
}