Skip to content

Commit

Permalink
fixed dictionary cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfriend99 committed Sep 27, 2024
1 parent 9d3d7bd commit 7580b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ b_obj_list *copy_list(b_vm *vm, b_obj_list *list, int start, int length) {
if(length == -1) length = list->items.count - start;

for(int i = start; i < start + length; i++) {
write_list(vm, _list, list->items.values[i]);
write_list(vm, _list, copy_value(vm, list->items.values[i]));
}

return _list;
Expand Down

0 comments on commit 7580b9c

Please sign in to comment.