From d4b2017fd188f141320d7848e34e123effab548e Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Tue, 19 Dec 2023 19:52:54 +0000 Subject: [PATCH] [NFC] Update row/col to pos_t --- lexer.cpp | 2 +- xos.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lexer.cpp b/lexer.cpp index 9589e2f..47cb80a 100644 --- a/lexer.cpp +++ b/lexer.cpp @@ -34,7 +34,7 @@ int Lexer::getNextChar() { Result Lexer::getNextToken() { char ch = getNextChar(); - uint32_t row = row_, col = col_; + pos_t row = row_, col = col_; // skip the whitespace while (isspace(ch)) { diff --git a/xos.h b/xos.h index d8170f6..3020c7f 100644 --- a/xos.h +++ b/xos.h @@ -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_;