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/ir_opt.cpp | |
| parent | 8987a6630c8ec43da770dd92c10f6b92e17201f2 (diff) | |
Extra type safety; Fix typos
Diffstat (limited to 'src/ir_opt.cpp')
| -rw-r--r-- | src/ir_opt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir_opt.cpp b/src/ir_opt.cpp index 756eed856..af7189efc 100644 --- a/src/ir_opt.cpp +++ b/src/ir_opt.cpp @@ -172,7 +172,7 @@ void ir_remove_dead_blocks(irProcedure *proc) { continue; } // NOTE(bill): Swap order - b->index = j; + b->index = cast(i32)j; proc->blocks[j++] = b; } proc->blocks.count = j; @@ -373,7 +373,7 @@ void ir_opt_build_dom_tree(irProcedure *proc) { gbTempArenaMemory tmp = gb_temp_arena_memory_begin(&proc->module->tmp_arena); - isize n = proc->blocks.count; + i32 n = cast(i32)proc->blocks.count; irBlock **buf = gb_alloc_array(proc->module->tmp_allocator, irBlock *, 5*n); irLTState lt = {0}; |