diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-31 11:36:00 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-31 11:36:00 +0100 |
| commit | 0fae31fb545b474359359fd644911fa335c5c282 (patch) | |
| tree | 5077da92ae70949b014c981d91467d67ff127e2f /src/build_settings.cpp | |
| parent | 8987a6630c8ec43da770dd92c10f6b92e17201f2 (diff) | |
Extra type safety; Fix typos
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 07b7a8e3e..b34e906c6 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -57,7 +57,7 @@ String odin_root_dir(void) { len = 0; for (;;) { - len = GetModuleFileNameW(nullptr, &path_buf[0], path_buf.count); + len = GetModuleFileNameW(nullptr, &path_buf[0], cast(int)path_buf.count); if (len == 0) { return make_string(nullptr, 0); } @@ -73,7 +73,7 @@ String odin_root_dir(void) { text = gb_alloc_array(string_buffer_allocator, wchar_t, len+1); - GetModuleFileNameW(nullptr, text, len); + GetModuleFileNameW(nullptr, text, cast(int)len); path = string16_to_string(heap_allocator(), make_string16(text, len)); for (i = path.len-1; i >= 0; i--) { |