[PATCH] D99340: [flang] Fix error compiling std::min on macos
Tim Keith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 25 11:19:11 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG61a55c8812e7: [flang] Fix error compiling std::min on macos (authored by tskeith).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99340/new/
https://reviews.llvm.org/D99340
Files:
flang/unittests/Runtime/buffer.cpp
Index: flang/unittests/Runtime/buffer.cpp
===================================================================
--- flang/unittests/Runtime/buffer.cpp
+++ flang/unittests/Runtime/buffer.cpp
@@ -31,7 +31,7 @@
static_cast<int>(at), static_cast<int>(minBytes),
static_cast<int>(maxBytes));
}
- auto result{std::min(maxBytes, bytes_ - at)};
+ auto result{std::min<std::size_t>(maxBytes, bytes_ - at)};
std::memcpy(to, &data_[at], result);
expect_ = at + result;
return result;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99340.333366.patch
Type: text/x-patch
Size: 519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210325/121e9e47/attachment.bin>
More information about the llvm-commits
mailing list