diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-25 19:23:52 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-25 19:23:52 +0000 |
| commit | d63885a495d2314a5ef76337605a9ebeefb26218 (patch) | |
| tree | a47a575251d0be0020e3120e970e71ba55d3a651 /src/build_settings.cpp | |
| parent | f28a34fa99d68ce54c76272385ff9c172cc2ae59 (diff) | |
`array_make`
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index a724e5894..b2897a1ca 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -71,7 +71,6 @@ String const NIX_SEPARATOR_STRING = {cast(u8 *)"/", 1}; #if defined(GB_SYSTEM_WINDOWS) String odin_root_dir(void) { String path = global_module_path; - Array<wchar_t> path_buf; isize len, i; gbTempArenaMemory tmp; wchar_t *text; @@ -80,7 +79,7 @@ String odin_root_dir(void) { return global_module_path; } - array_init_count(&path_buf, heap_allocator(), 300); + auto path_buf = array_make<wchar_t>(heap_allocator(), 300); len = 0; for (;;) { |