This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Fix MSVC warning C4018 "signed/unsigned mismatch", part 2/12.
ClosedPublic

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

Details

Summary

[libcxx] [test] Fix MSVC warning C4018 "signed/unsigned mismatch", part 2/12.

Add static_cast<std::size_t> when comparing int to std::size_t.

Also, include <cstddef> when it wasn't already being included.

Diff Detail

Event Timeline

STL_MSFT updated this revision to Diff 78980.Nov 22 2016, 4:45 PM
STL_MSFT retitled this revision from to [libcxx] [test] Fix MSVC warning C4018 "signed/unsigned mismatch", part 2/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, 4:56 PM
EricWF edited edge metadata.
This revision is now accepted and ready to land.Nov 22 2016, 4:56 PM
STL_MSFT closed this revision.Nov 23 2016, 2:16 PM

Thanks, r287822.