mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-13 12:36:36 -04:00
Fix compilation issues on OSX
This commit is contained in:
1 parent
0fff6a2b74
commit
d7bd3f8402
3 files changed
+7
-5
No files matched your search
+1
-1
@@ -4759,7 +4759,7 @@ ParseFileError init_ast_file(AstFile *f, String fullpath) {
|
||||
TokenizerInitError err = init_tokenizer(&f->tokenizer, fullpath);
|
||||
if (err == TokenizerInit_None) {
|
||||
isize file_size = f->tokenizer.end - f->tokenizer.start;
|
||||
isize init_token_cap = gb_max(next_pow2(file_size/2), 16);
|
||||
isize init_token_cap = cast(isize)gb_max(next_pow2(cast(i64)(file_size/2ll)), 16);
|
||||
array_init(&f->tokens, heap_allocator(), gb_max(init_token_cap, 16));
|
||||
|
||||
for (;;) {
|
||||
|
||||
Reference in new issue
Block a user