From f7f5308b8295abf25cb2bec312cac1068eefac99 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 15 Aug 2022 20:31:03 +0700 Subject: [PATCH] [libc++][test] Fix conversion signed/unsigned in test/support/MoveOnly.h Reviewed By: jloser, philnik Differential Revision: https://reviews.llvm.org/D131889 --- libcxx/test/support/MoveOnly.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/test/support/MoveOnly.h b/libcxx/test/support/MoveOnly.h index 5cd2b24..a67f8de 100644 --- a/libcxx/test/support/MoveOnly.h +++ b/libcxx/test/support/MoveOnly.h @@ -62,7 +62,7 @@ struct std::hash { 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(x.get());} }; #endif // MOVEONLY_H -- 2.7.4