summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-12-11 05:31:00 +0000
committerEric Fiselier <eric@efcs.ca>2016-12-11 05:31:00 +0000
commitc71bd55b5dd20dd94c5b87a30adb1da7e81c5114 (patch)
tree51ebcc46d3d70c5c3d18b752ab7e2910ff481f78 /libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp
parent72967a56e17c3ba7f1f689aaf569dd0648a1d3df (diff)
downloadbcm5719-llvm-c71bd55b5dd20dd94c5b87a30adb1da7e81c5114.tar.gz
bcm5719-llvm-c71bd55b5dd20dd94c5b87a30adb1da7e81c5114.zip
Enable the -Wsign-compare warning to better support MSVC
llvm-svn: 289363
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp')
-rw-r--r--libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp b/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp
index 234c30981f2..2f3f9bee4bc 100644
--- a/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp
@@ -39,7 +39,7 @@ test()
if (sizeof(T) <= sizeof(std::size_t))
{
const std::size_t result = h(t);
- LIBCPP_ASSERT(result == t);
+ LIBCPP_ASSERT(result == static_cast<size_t>(t));
((void)result); // Prevent unused warning
}
}
OpenPOWER on IntegriCloud