summaryrefslogtreecommitdiff
path: root/src/wasm/wat-lexer.cpp
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2022-06-14 18:46:42 -0700
committerGitHub <noreply@github.com>2022-06-14 18:46:42 -0700
commit96923f19eb0e7233fd1c7f438d3ebcf97690fd53 (patch)
treeab20ee27bdebccf367342119e86fc6aab7efab40 /src/wasm/wat-lexer.cpp
parentee5e48d5c1408dfb291c4b9bfa4804dbe5ba1520 (diff)
downloadbinaryen-96923f19eb0e7233fd1c7f438d3ebcf97690fd53.tar.gz
binaryen-96923f19eb0e7233fd1c7f438d3ebcf97690fd53.tar.bz2
binaryen-96923f19eb0e7233fd1c7f438d3ebcf97690fd53.zip
[Parser][NFC] Small code cleanups (#4729)
Apply cleanups suggested by aheejin in post-merge code review of previous parser PRs.
Diffstat (limited to 'src/wasm/wat-lexer.cpp')
-rw-r--r--src/wasm/wat-lexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wat-lexer.cpp b/src/wasm/wat-lexer.cpp
index 0d1dc2794..c7959295c 100644
--- a/src/wasm/wat-lexer.cpp
+++ b/src/wasm/wat-lexer.cpp
@@ -942,7 +942,7 @@ void Lexer::lexToken() {
curr = {tok};
}
-TextPos Lexer::position(const char* c) {
+TextPos Lexer::position(const char* c) const {
assert(size_t(c - buffer.data()) < buffer.size());
TextPos pos{1, 0};
for (const char* p = buffer.data(); p != c; ++p) {