Index: test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp =================================================================== --- test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp +++ test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp @@ -23,7 +23,7 @@ #include "test_macros.h" void -test(std::size_t i) +test(int i) { typedef std::error_code T; typedef std::hash H; @@ -32,7 +32,7 @@ H h; T ec(i, std::system_category()); const std::size_t result = h(ec); - LIBCPP_ASSERT(result == i); + LIBCPP_ASSERT(result == static_cast(i)); ((void)result); // Prevent unused warning }