0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

Build fix, take two (truly disambiguate pow)

This commit is contained in:
Alberto Lerner 2010-06-08 09:06:35 -04:00
parent 374fdf83e4
commit 164e6e9fb3

View File

@ -42,7 +42,7 @@ namespace mongo {
// _boundaries store the maximum value falling in that bucket.
if ( opts.exponential ){
for ( uint32_t i = 0; i < _numBuckets - 1; i++){
_boundaries[i] = _initialValue + opts.bucketSize * pow(2.0 , i);
_boundaries[i] = _initialValue + opts.bucketSize * pow(2.0 , static_cast<int>(i) );
}
} else {
_boundaries[0] = _initialValue + opts.bucketSize;