[flang-commits] [flang] [flang] pass true/false to EditLogicalOutput directly (NFC) (PR #73375)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Mon Nov 27 07:56:20 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);
----------------
klausler wrote:
`n != 0` would be clearer.
https://github.com/llvm/llvm-project/pull/73375
More information about the flang-commits
mailing list