Skip to content

Commit

Permalink
Reset indexes in Vector on removeAll
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Apr 27, 2020
1 parent e1e3d26 commit 34e8d1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core-lib/Kernel.ns
Expand Up @@ -791,6 +791,8 @@ class Kernel vmMirror: vmMirror = Object <: Value (

(* Preserves capacity *)
public removeAll = (
firstIdx:: 1.
lastIdx:: 1.
storage:: Array new: storage size.
)

Expand Down

0 comments on commit 34e8d1f

Please sign in to comment.