llvm-project/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong
Stephan T. Lavavej 8eb5ce8652 [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
2016-11-23 22:02:53 +00:00
..
assign.pass.cpp [libcxx] [test] D27020: Fix MSVC warning C4245 "conversion from 'X' to 'Y', signed/unsigned mismatch", part 7/12. 2016-11-23 22:02:53 +00:00
copy.pass.cpp [libcxx] [test] D27020: Fix MSVC warning C4245 "conversion from 'X' to 'Y', signed/unsigned mismatch", part 7/12. 2016-11-23 22:02:53 +00:00
ctor_result_type.pass.cpp
ctor_sseq.pass.cpp
default.pass.cpp [libcxx] [test] D27020: Fix MSVC warning C4245 "conversion from 'X' to 'Y', signed/unsigned mismatch", part 7/12. 2016-11-23 22:02:53 +00:00
discard.pass.cpp
eval.pass.cpp
io.pass.cpp
result_type.pass.cpp
seed_result_type.pass.cpp
seed_sseq.pass.cpp
values.pass.cpp [libcxx] [test] D27020: Fix MSVC warning C4245 "conversion from 'X' to 'Y', signed/unsigned mismatch", part 7/12. 2016-11-23 22:02:53 +00:00