From 0fae31fb545b474359359fd644911fa335c5c282 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Mon, 31 Jul 2017 11:36:00 +0100 Subject: Extra type safety; Fix typos --- src/ir_opt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ir_opt.cpp') 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}; -- cgit v1.2.3