diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 045bbd9ca..615eaaa9e 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -977,7 +977,7 @@ static void compileExpression(Token *&tok, AST_state& state) compileComma(tok, state); } -static bool isLambdaCaptureList(Token * tok) +static bool isLambdaCaptureList(const Token * tok) { // a lambda expression '[x](y){}' is compiled as: // [