[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 08:11:04 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf7f5308b8295: [libc++][test] Fix conversion signed/unsigned in test/support/MoveOnly.h (authored by fsb4000).

Repository:
  rG LLVM Github Monorepo

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

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.452674.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220815/03595ce0/attachment.bin>


More information about the libcxx-commits mailing list