[PATCH] D93319: [flang] Minor fix to list-directed REAL output editing

Peter Klausler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 15 13:05:19 PST 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb1afbceb9296: [flang] Minor fix to list-directed REAL output editing (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93319/new/

https://reviews.llvm.org/D93319

Files:
  flang/runtime/edit-output.cpp


Index: flang/runtime/edit-output.cpp
===================================================================
--- flang/runtime/edit-output.cpp
+++ flang/runtime/edit-output.cpp
@@ -116,7 +116,7 @@
     }
   }
   *--exponent = expo < 0 ? '-' : '+';
-  if (edit.expoDigits || exponent + 3 == eEnd) {
+  if (edit.expoDigits || edit.IsListDirected() || exponent + 3 == eEnd) {
     *--exponent = edit.descriptor == 'D' ? 'D' : 'E'; // not 'G'
   }
   length = eEnd - exponent;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93319.312010.patch
Type: text/x-patch
Size: 469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201215/2e2a7c50/attachment.bin>


More information about the llvm-commits mailing list