[libcxx-commits] [libcxx] linear_congruential_engine: add using more precision to prevent overflow (PR #81583)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Mar 3 09:31:38 PST 2024
================
@@ -61,24 +61,33 @@ test()
test1<T, A, 0, M>();
test1<T, A, M - 2, M>();
test1<T, A, M - 1, M>();
+}
+
+template <class T>
+void test_ext() {
+ const T M(static_cast<T>(-1));
- /*
----------------
mordante wrote:
I assume the next line's " (not implemented)" is no longer true too. (The same for similar enabled tests).
https://github.com/llvm/llvm-project/pull/81583
More information about the libcxx-commits
mailing list