This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 4/7.
ClosedPublic

Authored by STL_MSFT on Dec 7 2016, 2:02 PM.

Details

Summary

[libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 4/7.

Change char to long and remove some char casts. This preserves test coverage for tuple's
heterogeneous comparisons, while avoiding int-to-char truncation warnings.

Diff Detail

Event Timeline

STL_MSFT updated this revision to Diff 80655.Dec 7 2016, 2:02 PM
STL_MSFT retitled this revision from to [libcxx] [test] Fix MSVC warning C4244 "conversion from 'X' to 'Y', possible loss of data", part 4/7..
STL_MSFT updated this object.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
EricWF edited edge metadata.Dec 7 2016, 11:20 PM

Waiting for a response on D27540 before reviewing this.

Responded to D27540. tuple is affected just like pair.

EricWF accepted this revision.Dec 8 2016, 12:44 PM
EricWF edited edge metadata.
This revision is now accepted and ready to land.Dec 8 2016, 12:44 PM
STL_MSFT closed this revision.Dec 8 2016, 1:57 PM