[flang-commits] [PATCH] D88509: [flang][msvc] Define implicit conversion from UnsignedInt128 to int64_t.

Michael Kruse via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Sep 29 14:41:58 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGb5543063e1bf: [flang][msvc] Define implicit conversion from UnsignedInt128 to int64_t. (authored by Meinersbur).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88509

Files:
  flang/include/flang/Common/uint128.h


Index: flang/include/flang/Common/uint128.h
===================================================================
--- flang/include/flang/Common/uint128.h
+++ flang/include/flang/Common/uint128.h
@@ -53,6 +53,7 @@
   constexpr bool operator!() const { return !low_ && !high_; }
   constexpr explicit operator bool() const { return low_ || high_; }
   constexpr explicit operator std::uint64_t() const { return low_; }
+  constexpr explicit operator std::int64_t() const { return low_; }
   constexpr explicit operator int() const { return static_cast<int>(low_); }
 
   constexpr std::uint64_t high() const { return high_; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88509.295125.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200929/5bbe4149/attachment.bin>


More information about the flang-commits mailing list