Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68788 - trunk/boost/random/detail
From: steven_at_[hidden]
Date: 2011-02-11 16:32:07


Author: steven_watanabe
Date: 2011-02-11 16:32:07 EST (Fri, 11 Feb 2011)
New Revision: 68788
URL: http://svn.boost.org/trac/boost/changeset/68788

Log:
Help pgi?
Text files modified:
   trunk/boost/random/detail/seed_impl.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/random/detail/seed_impl.hpp
==============================================================================
--- trunk/boost/random/detail/seed_impl.hpp (original)
+++ trunk/boost/random/detail/seed_impl.hpp 2011-02-11 16:32:07 EST (Fri, 11 Feb 2011)
@@ -116,7 +116,7 @@
     static const int log = ::boost::static_log2<m>::value;
     static const int k =
         (log + ((~(static_cast<IntType>(1) << log) & m)? 32 : 31)) / 32;
- boost::uint_least32_t array[k + 3];
+ boost::uint_least32_t array[log / 32 + 4];
     seq.generate(&array[0], &array[0] + k + 3);
     IntType s = 0;
     for(int j = 0; j < k; ++j) {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk