[libcxx-commits] [libcxx] f7f5308 - [libc++][test] Fix conversion signed/unsigned in test/support/MoveOnly.h
Igor Zhukov via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 15 08:10:52 PDT 2022
Author: Igor Zhukov
Date: 2022-08-15T22:09:54+07:00
New Revision: f7f5308b8295abf25cb2bec312cac1068eefac99
URL: https://github.com/llvm/llvm-project/commit/f7f5308b8295abf25cb2bec312cac1068eefac99
DIFF: https://github.com/llvm/llvm-project/commit/f7f5308b8295abf25cb2bec312cac1068eefac99.diff
LOG: [libc++][test] Fix conversion signed/unsigned in test/support/MoveOnly.h
Reviewed By: jloser, philnik
Differential Revision: https://reviews.llvm.org/D131889
Added:
Modified:
libcxx/test/support/MoveOnly.h
Removed:
################################################################################
diff --git a/libcxx/test/support/MoveOnly.h b/libcxx/test/support/MoveOnly.h
index 5cd2b246c651..a67f8de60741 100644
--- a/libcxx/test/support/MoveOnly.h
+++ b/libcxx/test/support/MoveOnly.h
@@ -62,7 +62,7 @@ struct std::hash<MoveOnly>
{
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
More information about the libcxx-commits
mailing list