diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-25 15:11:20 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-25 15:11:20 +0000 |
| commit | a1e8de4e00e536c94ec87903569a68e51d95b31f (patch) | |
| tree | acab6c7721ddd63e3450e2fcee066f2871e14ace /src | |
| parent | d247ba4751d8189082849e114e3d4a6106b0d053 (diff) | |
Fix ir_emit_slice_bounds_check
Diffstat (limited to 'src')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |