Skip to content

Commit

Permalink
Fix potential issue with NbLexerCharStream(s) (#1969)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihsahn committed Feb 26, 2020
1 parent 60d3983 commit a837b79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -132,9 +132,9 @@ public void release(int marker) {
}

//remove all markers from the given one, including the requested one
for(int i = marker; i < markers.size(); i++) {
markers.remove(i);
}
do {
markers.pop();
} while (marker < markers.size());
}

@Override
Expand Down
Expand Up @@ -75,9 +75,9 @@ public void release(int marker) {
}

//remove all markers from the given one, including the requested one
for(int i = marker; i < markers.size(); i++) {
markers.remove(i);
}
do {
markers.pop();
} while (marker < markers.size());
}

@Override
Expand Down

0 comments on commit a837b79

Please sign in to comment.