Skip to content

Commit

Permalink
[NFC] Update row/col to pos_t
Browse files Browse the repository at this point in the history
  • Loading branch information
PiJoules committed Dec 19, 2023
1 parent dc324a5 commit d4b2017
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int Lexer::getNextChar() {

Result<Token> Lexer::getNextToken() {
char ch = getNextChar();
uint32_t row = row_, col = col_;
pos_t row = row_, col = col_;

// skip the whitespace
while (isspace(ch)) {
Expand Down
2 changes: 1 addition & 1 deletion xos.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Lexer {
int getNextChar();

std::istream &input_;
uint32_t row_ = 1, col_ = 0;
pos_t row_ = 1, col_ = 0;

bool has_lookahead_ = false;
int lookahead_;
Expand Down

0 comments on commit d4b2017

Please sign in to comment.