diff options
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 (;;) { |