Skip to content

Commit

Permalink
Merge pull request #34 from dsLeks/uint32_t-to-pos_t
Browse files Browse the repository at this point in the history
[NFC] Update row/col to pos_t
  • Loading branch information
dsLeks authored Dec 27, 2023
2 parents b78c9fe + bbf84b8 commit 798ad88
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::Lex() {
int 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 @@ -134,7 +134,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 798ad88

Please sign in to comment.