summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp')
-rw-r--r--libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
index 8c09f4fd010..d96ccf9de7f 100644
--- a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
+++ b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/assign.pass.cpp
@@ -37,7 +37,7 @@ test()
test1<T, 0, 0, 0>();
test1<T, 0, 1, 2>();
test1<T, 1, 1, 2>();
- const T M(~0);
+ const T M(static_cast<T>(-1));
test1<T, 0, 0, M>();
test1<T, 0, M-2, M>();
test1<T, 0, M-1, M>();
OpenPOWER on IntegriCloud