From 94d4f7cb88c3c3e04b0389a75977497d423f119b Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 5 Mar 2024 18:43:35 +0200 Subject: [PATCH] Avoid -Wsign-conversion under GCC 6/7 --- test/hash_container_test2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/hash_container_test2.cpp b/test/hash_container_test2.cpp index 5c7afea..25f4ab1 100644 --- a/test/hash_container_test2.cpp +++ b/test/hash_container_test2.cpp @@ -30,10 +30,10 @@ std::size_t hash_value( X2 const& ) int main() { X1 x1; - BOOST_TEST_EQ( boost::hash()( x1 ), 1 ); + BOOST_TEST_EQ( boost::hash()( x1 ), 1u ); X2 x2; - BOOST_TEST_EQ( boost::hash()( x2 ), 2 ); + BOOST_TEST_EQ( boost::hash()( x2 ), 2u ); return boost::report_errors(); }