From d63885a495d2314a5ef76337605a9ebeefb26218 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 25 Feb 2018 19:23:52 +0000 Subject: `array_make` --- src/build_settings.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/build_settings.cpp') 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 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(heap_allocator(), 300); len = 0; for (;;) { -- cgit v1.2.3