diff options
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2016-11-23 22:02:53 +0000 |
---|---|---|
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | 2016-11-23 22:02:53 +0000 |
commit | 8eb5ce86529a3f67571b07d5a47419bb8c9cd230 (patch) | |
tree | bce273fd5eea9b1cc7658c18742abba7947688e9 /libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.gcd | |
parent | bbdf9b7d2b9eddf451b8f5991b00bb47c93f172c (diff) | |
download | bcm5719-llvm-8eb5ce86529a3f67571b07d5a47419bb8c9cd230.tar.gz bcm5719-llvm-8eb5ce86529a3f67571b07d5a47419bb8c9cd230.zip |
[libcxx] [test] D27020: Fix MSVC warning C4245 "conversion from 'X' to 'Y', signed/unsigned mismatch", part 7/12.
When initializing unsigned integers to their maximum values, change "const T M(~0);" to "const T M(static_cast<T>(-1));".
~0 and -1 are equivalent, but I consider the -1 form to be significantly clearer (and more consistent with other tests).
llvm-svn: 287827
Diffstat (limited to 'libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.gcd')
0 files changed, 0 insertions, 0 deletions