mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
parent
7520dfee06
commit
bb3fe92251
7 changed files with 14 additions and 56 deletions
|
@ -289,8 +289,7 @@ pub fn list_get_unsafe<'a, 'ctx, 'env>(
|
|||
|
||||
let result = builder.build_load(elem_ptr, "List.get");
|
||||
|
||||
let n = env.ptr_int().const_int(1, false);
|
||||
increment_refcount_layout(env, parent, layout_ids, n, result, elem_layout);
|
||||
increment_refcount_layout(env, parent, layout_ids, 1, result, elem_layout);
|
||||
|
||||
result
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue