aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-08-11 00:16:57 +0100
committerGinger Bill <bill@gingerbill.org>2017-08-11 00:16:57 +0100
commitd7bd3f8402e86d020ff5bb9dda3f9a2da2d3a07c (patch)
tree414ffed3e9b176499fa7be104e30e3a9e4b63640 /src/parser.cpp
parent0fff6a2b74fb415e30a6b9ae104e204ffe799cbe (diff)
Fix compilation issues on OSX
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index fc4c40079..de2da964a 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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 (;;) {