summaryrefslogtreecommitdiff
path: root/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp')
-rw-r--r--test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp b/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp
index c8b3d98103c4..4091f446af27 100644
--- a/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp
+++ b/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp
@@ -32,7 +32,7 @@ test(int i)
H h;
T ec(i, std::system_category());
const std::size_t result = h(ec);
- LIBCPP_ASSERT(result == i);
+ LIBCPP_ASSERT(result == static_cast<std::size_t>(i));
((void)result); // Prevent unused warning
}