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:
@@ -35,7 +35,7 @@ test()
|
||||
|
||||
std::size_t t0 = 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 tn1 = h(-1);
|
||||
std::size_t pinf = h(INFINITY);
|
||||
|
||||
Reference in New Issue
Block a user