Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bad index in removevalues (#571)
* Fix bad index in removevalues When the table.remove call from split into its own reverse iterating loop, the table.remove call was still using the `k` variable from the old loop rather than the new `i` index. * The for loop in removevalues should also break To match previous behavior, which was correct, the reverse iteration should also `break` so it doesn't needlessly try to match the entry that shifted into that index. No behavior change, as that entry would have already been checked and not matched. If the table only has one entry that is removed, this code would be indexing an empty table. * Embed scripts into scripts.c Run embed to inject fixes to removevalues
- Loading branch information