This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] In unord.hash/floating.pass.cpp, add a static_cast to fix a truncation warning.
ClosedPublic

Authored by STL_MSFT on Jun 7 2016, 12:21 PM.

Details

Summary

In unord.hash/floating.pass.cpp, add a static_cast to fix a truncation warning.

Fixes MSVC warning C4305 "'argument': truncation from 'double' to 'const std::hash<float>::_Kty'".

Diff Detail

Event Timeline

STL_MSFT updated this revision to Diff 59932.Jun 7 2016, 12:21 PM
STL_MSFT retitled this revision from to [libcxx] [test] In unord.hash/floating.pass.cpp, add a static_cast to fix a truncation warning..
STL_MSFT updated this object.
STL_MSFT added reviewers: mclow.lists, EricWF.
STL_MSFT added a subscriber: cfe-commits.
EricWF accepted this revision.Jun 13 2016, 8:00 PM
EricWF edited edge metadata.
This revision is now accepted and ready to land.Jun 13 2016, 8:00 PM
EricWF closed this revision.Jun 13 2016, 8:01 PM

r272621.