diff --git a/src/SFML/Graphics/Text.cpp b/src/SFML/Graphics/Text.cpp index 8bc1c20a7..8d40c75ef 100644 --- a/src/SFML/Graphics/Text.cpp +++ b/src/SFML/Graphics/Text.cpp @@ -453,7 +453,7 @@ void Text::ensureGeometryUpdate() const Uint32 curChar = m_string[i]; // Skip the \r char to avoid weird graphical issues - if (curChar == '\r') + if (curChar == L'\r') continue; // Apply the kerning offset diff --git a/src/SFML/Network/Http.cpp b/src/SFML/Network/Http.cpp index 54ffff01c..5542a2b6b 100644 --- a/src/SFML/Network/Http.cpp +++ b/src/SFML/Network/Http.cpp @@ -246,7 +246,10 @@ void Http::Response::parse(const std::string& data) std::istreambuf_iterator it(in); std::istreambuf_iterator itEnd; for (std::size_t i = 0; ((i < length) && (it != itEnd)); ++i) - m_body.push_back(*it++); + { + m_body.push_back(*it); + ++it; // Iterate in separate expression to work around false positive -Wnull-dereference warning in GCC 12.1.0 + } } // Drop the rest of the line (chunk-extension)