[flang-commits] [flang] [flang] Fix -Wcharacter-conversion warnings (NFC) (PR #155873)
Nikita Popov via flang-commits
flang-commits at lists.llvm.org
Thu Aug 28 09:03:49 PDT 2025
================
@@ -289,7 +289,8 @@ RESULT DecodeString(const std::string &s, bool backslashEscapes) {
DecodeCharacter<ENCODING>(p, bytes, backslashEscapes)};
if (decoded.bytes > 0) {
if (static_cast<std::size_t>(decoded.bytes) <= bytes) {
- result.append(1, decoded.codepoint);
+ result.append(
+ 1, static_cast<typename RESULT::value_type>(decoded.codepoint));
----------------
nikic wrote:
This one looks like it might truncate. Don't know whether this is somehow excluded by the broader context.
https://github.com/llvm/llvm-project/pull/155873
More information about the flang-commits
mailing list