From a1e8de4e00e536c94ec87903569a68e51d95b31f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 25 Feb 2018 15:11:20 +0000 Subject: [PATCH] Fix ir_emit_slice_bounds_check --- src/ir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ir.cpp b/src/ir.cpp index f2229178f..eef6ab673 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -3679,7 +3679,7 @@ void ir_emit_slice_bounds_check(irProcedure *proc, Token token, irValue *low, ir low = ir_emit_conv(proc, low, t_int); high = ir_emit_conv(proc, high, t_int); - irValue **args = gb_alloc_array(a, irValue *, 5); + irValue **args = gb_alloc_array(a, irValue *, 6); args[0] = file; args[1] = line; args[2] = column;