summaryrefslogtreecommitdiff
path: root/src/wast-lexer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wast-lexer.cc')
-rw-r--r--src/wast-lexer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wast-lexer.cc b/src/wast-lexer.cc
index 1f89c3ff..bc781589 100644
--- a/src/wast-lexer.cc
+++ b/src/wast-lexer.cc
@@ -180,7 +180,7 @@ Token WastLexer::GetToken() {
}
Location WastLexer::GetLocation() {
- auto column = [=](const char* p) {
+ auto column = [this](const char* p) {
return std::max(1, static_cast<int>(p - line_start_ + 1));
};
return Location(filename_, line_, column(token_start_), column(cursor_));