mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Fixed problem with index for loop to sum lengths of lists in outer list not initialized to zero
This commit is contained in:
parent
60dcad329f
commit
ba1feb9330
1 changed files with 2 additions and 0 deletions
|
@ -1587,6 +1587,8 @@ fn list_join<'a, 'ctx, 'env>(
|
|||
let list_len_sum_name = "#listslengthsum";
|
||||
let list_len_sum_alloca = builder.build_alloca(ctx.i64_type(), list_len_sum_name);
|
||||
|
||||
builder.build_store(list_len_sum_alloca, ctx.i64_type().const_int(0, false));
|
||||
|
||||
// List Sum Loop
|
||||
{
|
||||
let index_name = "#index";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue