| 1 | Bradley-Meyers-MacBook-Air:boost-trunk bradleymeyer$ svn diff boost/multi_index/hashed_index.hpp
|
|---|
| 2 | Index: boost/multi_index/hashed_index.hpp
|
|---|
| 3 | ===================================================================
|
|---|
| 4 | --- boost/multi_index/hashed_index.hpp (revision 83051)
|
|---|
| 5 | +++ boost/multi_index/hashed_index.hpp (working copy)
|
|---|
| 6 | @@ -1047,7 +1047,7 @@
|
|---|
| 7 | {
|
|---|
| 8 | if(n>max_load){
|
|---|
| 9 | size_type bc =(std::numeric_limits<size_type>::max)();
|
|---|
| 10 | - float fbc=static_cast<float>(1+n/mlf);
|
|---|
| 11 | + float fbc=static_cast<float>(1+n/static_cast<size_type>(mlf));
|
|---|
| 12 | if(bc>fbc)bc =static_cast<size_type>(fbc);
|
|---|
| 13 | unchecked_rehash(bc);
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|