[PATCH] D27267: [libcxx] [test] Fix MSVC x64 warning C4267 "conversion from 'size_t' to 'int' [or 'unsigned int'], possible loss of data", part 1/4.
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 2 23:42:58 PST 2016
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
LGTM.
Random thought: It would be nice for C++ to have a `non_truncating_cast<T>(value)` which generated an error when the conversion performs a truncation. This seems like the behavior we want for most of these changes, since the cast *shouldn't* truncate.
https://reviews.llvm.org/D27267
More information about the cfe-commits
mailing list