From ca7608ea6ab669308c660bbc4d01cd674c67b721 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Mon, 27 May 2024 10:48:37 +0200 Subject: [PATCH] fix: Fix gcc warning (#111) --- lib/source/pl/core/preprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/source/pl/core/preprocessor.cpp b/lib/source/pl/core/preprocessor.cpp index 84aaf5df..abe3323a 100644 --- a/lib/source/pl/core/preprocessor.cpp +++ b/lib/source/pl/core/preprocessor.cpp @@ -342,7 +342,7 @@ namespace pl::core { m_token++; tokenLiteral = std::get_if(&m_token->value); if (tokenLiteral != nullptr && m_token->location.line == line) { - message += " " + tokenLiteral->toString(false); + message += std::string(" ") + tokenLiteral->toString(false); m_token++; } error(message);