diff --git a/libcxx/test/support/MoveOnly.h b/libcxx/test/support/MoveOnly.h index 5cd2b246c6510..a67f8de607414 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