From faea988310b2c33e300a8b49fc834e115b43e7f6 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 17 Oct 2021 17:49:10 +0300 Subject: [PATCH] Revert change to hash_number_test.cpp --- test/hash_number_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/hash_number_test.cpp b/test/hash_number_test.cpp index b56d2c6..668a86c 100644 --- a/test/hash_number_test.cpp +++ b/test/hash_number_test.cpp @@ -37,7 +37,8 @@ void numeric_extra_tests(typename { typedef boost::hash_detail::limits limits; - if(limits::digits <= boost::hash_detail::limits::digits) + if(limits::is_signed || + limits::digits <= boost::hash_detail::limits::digits) { BOOST_TEST(BOOST_HASH_TEST_NAMESPACE::hash_value(T(-5)) == (std::size_t)T(-5)); }