[flang-commits] [flang] [flang] pass true/false to EditLogicalOutput directly (NFC) (PR #73375)

via flang-commits flang-commits at lists.llvm.org
Wed Dec 6 07:02:22 PST 2023


================
@@ -140,7 +140,7 @@ bool EditIntegerOutput(IoStatementState &io, const DataEdit &edit,
     return EditBOZOutput<4>(
         io, edit, reinterpret_cast<const unsigned char *>(&n), KIND);
   case 'L':
-    return EditLogicalOutput(io, edit, *reinterpret_cast<const char *>(&n));
+    return EditLogicalOutput(io, edit, n == 0 ? false : true);
----------------
kkwli wrote:

@klausler  Sure, I will update it. Thanks for reviewing it.

https://github.com/llvm/llvm-project/pull/73375


More information about the flang-commits mailing list