Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix off-by-one in VarDeque grow
  • Loading branch information
sorear committed Oct 24, 2010
1 parent 6742210 commit 4e17da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Kernel.cs
Expand Up @@ -1408,7 +1408,7 @@ public sealed class VarDeque {
}

private void checkgrow() {
if (count == data.Length - 1) {
if (count == data.Length) {
Variable[] ndata = new Variable[data.Length * 2];
data = ndata;
head = 0;
Expand Down

0 comments on commit 4e17da4

Please sign in to comment.