From da75c159ca4dfe6180a6bc2c6dc3fbe63b2008a2 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 27 Sep 2019 21:20:08 -0700 Subject: [PATCH] [clang-tidy] Cast integer to string Found with bugprone-string-integer-assignment Signed-off-by: Rosen Penev --- src/Lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lexer.cpp b/src/Lexer.cpp index a47794477..29a541a9b 100644 --- a/src/Lexer.cpp +++ b/src/Lexer.cpp @@ -1420,7 +1420,7 @@ bool Lexer::readWord ( std::string::size_type eos = text.length (); int quote = text[cursor++]; - word = quote; + word = std::to_string(quote); int c; while ((c = text[cursor]))