diff options
Diffstat (limited to 'libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp')
-rw-r--r-- | libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp index 4b2b20da13a..b38e8f583f2 100644 --- a/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.pass.cpp +++ b/libcxx/test/std/numerics/rand/rand.eng/rand.eng.lcong/copy.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>(); |