Prevent truncation warning. Patch from STL@microsoft.com

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@272621 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-06-14 02:54:15 +00:00
parent 831bfc277c
commit afa2f4331a

View File

@@ -35,7 +35,7 @@ test()
std::size_t t0 = h(0.); std::size_t t0 = h(0.);
std::size_t tn0 = h(-0.); std::size_t tn0 = h(-0.);
std::size_t tp1 = h(0.1); std::size_t tp1 = h(static_cast<T>(0.1));
std::size_t t1 = h(1); std::size_t t1 = h(1);
std::size_t tn1 = h(-1); std::size_t tn1 = h(-1);
std::size_t pinf = h(INFINITY); std::size_t pinf = h(INFINITY);