Skip to content

Commit

Permalink
It helps if you copy the elements into the new array.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Oct 24, 2010
1 parent 4e17da4 commit 8fe1193
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Kernel.cs
Expand Up @@ -1410,6 +1410,7 @@ public sealed class VarDeque {
private void checkgrow() {
if (count == data.Length) {
Variable[] ndata = new Variable[data.Length * 2];
CopyToArray(ndata);
data = ndata;
head = 0;
}
Expand Down

0 comments on commit 8fe1193

Please sign in to comment.