[libcxx-commits] [PATCH] D131889: [libc++][test] Fix conversion signed/unsigned in test/support/MoveOnly.h
Igor Zhukov via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 15 06:35:17 PDT 2022
fsb4000 created this revision.
fsb4000 added a project: libc++.
Herald added a project: All.
fsb4000 requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131889
Files:
libcxx/test/support/MoveOnly.h
Index: libcxx/test/support/MoveOnly.h
===================================================================
--- libcxx/test/support/MoveOnly.h
+++ libcxx/test/support/MoveOnly.h
@@ -62,7 +62,7 @@
{
typedef MoveOnly argument_type;
typedef size_t result_type;
- TEST_CONSTEXPR size_t operator()(const MoveOnly& x) const {return x.get();}
+ TEST_CONSTEXPR size_t operator()(const MoveOnly& x) const {return static_cast<size_t>(x.get());}
};
#endif // MOVEONLY_H
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131889.452651.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220815/27a1e973/attachment.bin>
More information about the libcxx-commits
mailing list