Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83058 - in trunk: boost/multi_index libs/multi_index/doc
From: joaquin_at_[hidden]
Date: 2013-02-21 05:11:32


Author: joaquin
Date: 2013-02-21 05:11:30 EST (Thu, 21 Feb 2013)
New Revision: 83058
URL: http://svn.boost.org/trac/boost/changeset/83058

Log:
fixed #8129
Text files modified:
   trunk/boost/multi_index/hashed_index.hpp | 2 +-
   trunk/libs/multi_index/doc/release_notes.html | 4 ++--
   2 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/multi_index/hashed_index.hpp
==============================================================================
--- trunk/boost/multi_index/hashed_index.hpp (original)
+++ trunk/boost/multi_index/hashed_index.hpp 2013-02-21 05:11:30 EST (Thu, 21 Feb 2013)
@@ -1047,7 +1047,7 @@
   {
     if(n>max_load){
       size_type bc =(std::numeric_limits<size_type>::max)();
- float fbc=static_cast<float>(1+n/mlf);
+ float fbc=static_cast<float>(1+static_cast<double>(n)/mlf);
       if(bc>fbc)bc =static_cast<size_type>(fbc);
       unchecked_rehash(bc);
     }

Modified: trunk/libs/multi_index/doc/release_notes.html
==============================================================================
--- trunk/libs/multi_index/doc/release_notes.html (original)
+++ trunk/libs/multi_index/doc/release_notes.html 2013-02-21 05:11:30 EST (Thu, 21 Feb 2013)
@@ -53,7 +53,7 @@
 <p>
 <ul>
   <li>Suppressed some potential warnings described in
- ticket #8034.
+ tickets #8034 and #8129.
   </li>
   <li>Maintenance fixes.</li>
 </ul>
@@ -371,7 +371,7 @@
 
 <br>
 
-<p>Revised February 18th 2013</p>
+<p>Revised February 21st 2013</p>
 
 <p>&copy; Copyright 2003-2013 Joaqu&iacute;n M L&oacute;pez Mu&ntilde;oz.
 Distributed under the Boost Software


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