This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Fix MSVC warning C4245 "conversion from 'X' to 'Y', signed/unsigned mismatch", part 6/12.
ClosedPublic

Authored by STL_MSFT on Nov 22 2016, 4:49 PM.

Details

Summary

[libcxx] [test] Fix MSVC warning C4245 "conversion from 'X' to 'Y', signed/unsigned mismatch", part 6/12.

Add static_cast when initializing unsigned integers with negative numbers (in order to obtain big values).

Diff Detail

Event Timeline

STL_MSFT updated this revision to Diff 78987.Nov 22 2016, 4:49 PM
STL_MSFT retitled this revision from to [libcxx] [test] Fix MSVC warning C4245 "conversion from 'X' to 'Y', signed/unsigned mismatch", part 6/12..
STL_MSFT updated this object.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
EricWF accepted this revision.Nov 22 2016, 10:45 PM
EricWF edited edge metadata.
This revision is now accepted and ready to land.Nov 22 2016, 10:45 PM
STL_MSFT closed this revision.Nov 23 2016, 2:17 PM

Thanks, r287826.