]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2009-06-29 Paolo Carlini <paolo.carlini@oracle.com>
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 30 Jun 2009 01:25:52 +0000 (01:25 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 30 Jun 2009 01:25:52 +0000 (01:25 +0000)
* include/bits/random.tcc
(linear_congruential_engine<>::seed(seed_seq&)): Use uint_least32_t
as array type.

From-SVN: r149078

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/random.tcc

index 6704b4324451b43d09dabf11557739730dade8d0..f12321785a0d7c55327cbba2b2f3aad9bdc1e490 100644 (file)
@@ -1,3 +1,9 @@
+2009-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/bits/random.tcc
+       (linear_congruential_engine<>::seed(seed_seq&)): Use uint_least32_t
+       as array type.
+
 2009-06-29  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/bits/random.h (__mod(_Tp)): Use defaults.
index c8b6590a28d64ae9f2834f49eb7111ea45fae580..e4c39612b7fbc479449d3d3d3ca3560b73900de0 100644 (file)
@@ -116,7 +116,7 @@ namespace std
       const _UIntType __k0 = __m == 0 ? std::numeric_limits<_UIntType>::digits
                                      : std::__lg(__m);
       const _UIntType __k = (__k0 + 31) / 32;
-      _UIntType __arr[__k + 3];
+      uint_least32_t __arr[__k + 3];
       __q.generate(__arr + 0, __arr + __k + 3);
       _UIntType __factor = 1u;
       _UIntType __sum = 0u;