[flang-commits] [PATCH] D126139: [flang] Fix character length calculation for Unicode component
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Mon May 23 17:48:24 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe141e719e166: [flang] Fix character length calculation for Unicode component (authored by klausler).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126139/new/
https://reviews.llvm.org/D126139
Files:
flang/runtime/type-info.cpp
Index: flang/runtime/type-info.cpp
===================================================================
--- flang/runtime/type-info.cpp
+++ flang/runtime/type-info.cpp
@@ -91,7 +91,7 @@
if (cat == TypeCategory::Character) {
std::size_t lengthInChars{0};
if (auto length{characterLen_.GetValue(&container)}) {
- lengthInChars = static_cast<std::size_t>(*length / kind_);
+ lengthInChars = static_cast<std::size_t>(*length);
} else {
RUNTIME_CHECK(
terminator, characterLen_.genre() == Value::Genre::Deferred);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126139.431544.patch
Type: text/x-patch
Size: 554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220524/03a04e8a/attachment.bin>
More information about the flang-commits
mailing list