diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-25 20:52:06 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-25 20:52:06 +0000 |
| commit | fd57cfa1ae102ac8b8f33961c6198a7faa42b0eb (patch) | |
| tree | 37af778ed8785e694d427711bb9abaee9ea99755 /src/build_settings.cpp | |
| parent | f23bd2dc275db2f424925d0526ac2c1fff64e199 (diff) | |
Fix build_settings.cpp
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 3b4fcc9d8..11f52d258 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -128,7 +128,6 @@ String odin_root_dir(void) { String odin_root_dir(void) { String path = global_module_path; - Array<char> path_buf; isize len, i; gbTempArenaMemory tmp; u8 *text; @@ -137,7 +136,7 @@ String odin_root_dir(void) { return global_module_path; } - array_init_count(&path_buf, heap_allocator(), 300); + auto path_buf = array_make<char>(heap_allocator(), 300); len = 0; for (;;) { @@ -184,7 +183,6 @@ String odin_root_dir(void) { String odin_root_dir(void) { String path = global_module_path; - Array<char> path_buf; isize len, i; gbTempArenaMemory tmp; u8 *text; @@ -193,7 +191,7 @@ String odin_root_dir(void) { return global_module_path; } - array_init_count(&path_buf, heap_allocator(), 300); + auto path_buf = array_make<char>(heap_allocator(), 300); defer (array_free(&path_buf)); len = 0; |