summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.gcd
diff options
context:
space:
mode:
authorStephan T. Lavavej <stl@exchange.microsoft.com>2016-11-23 22:02:53 +0000
committerStephan T. Lavavej <stl@exchange.microsoft.com>2016-11-23 22:02:53 +0000
commit8eb5ce86529a3f67571b07d5a47419bb8c9cd230 (patch)
treebce273fd5eea9b1cc7658c18742abba7947688e9 /libcxx/test/std/experimental/numeric/numeric.ops/numeric.ops.gcd
parentbbdf9b7d2b9eddf451b8f5991b00bb47c93f172c (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud