Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Uses one-based indices for columns.
Browse files Browse the repository at this point in the history
We accidentally converted to zero-based indices with the last fix
where we moved a postfix increment to the location where it was used.

Therefore we have to turn this into a prefix increment.
  • Loading branch information
andyHa committed Jun 15, 2021
1 parent ac12768 commit ca9c634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/parsii/tokenizer/LookaheadReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected Char fetch() {
if (character == -1) {
return null;
}
Char result = new Char((char) character, line, pos++);
Char result = new Char((char) character, line, ++pos);
if (character == '\n') {
line++;
pos = 0;
Expand Down

0 comments on commit ca9c634

Please sign in to comment.