This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] More work on <random>, updates to N2914


... forgot this bit. Also committed to mainline.

Paolo.

//////////////////
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.
Index: include/bits/random.tcc
===================================================================
--- include/bits/random.tcc	(revision 149074)
+++ include/bits/random.tcc	(working copy)
@@ -116,7 +116,7 @@
       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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]