diff --git a/src/test/unit/unit_hash_smart_ptr.cpp b/src/test/unit/unit_hash_smart_ptr.cpp index 4881d6d1..7d635fe4 100644 --- a/src/test/unit/unit_hash_smart_ptr.cpp +++ b/src/test/unit/unit_hash_smart_ptr.cpp @@ -13,11 +13,11 @@ void check(Ptr const& ptr) { TEST_CASE("unit_hash_smart_ptr") { check(std::unique_ptr{}); check(std::shared_ptr{}); - check(std::make_shared(123)); + check(std::make_shared(123U)); #if ROBIN_HOOD(CXX) >= ROBIN_HOOD(CXX14) - check(std::make_unique(123)); + check(std::make_unique(123U)); #else - check(std::unique_ptr{new uint64_t{123}}); + check(std::unique_ptr{new uint64_t{123U}}); #endif } diff --git a/src/test/unit/unit_hash_string_view.cpp b/src/test/unit/unit_hash_string_view.cpp index 26409f39..279d1af4 100644 --- a/src/test/unit/unit_hash_string_view.cpp +++ b/src/test/unit/unit_hash_string_view.cpp @@ -22,7 +22,7 @@ TEST_CASE("unit_hash_u32string") { str.push_back(5); REQUIRE(robin_hood::hash{}(str) == - robin_hood::hash{}(std::u32string_view{str})); + robin_hood::hash{}(str)); } #endif