diff options
author | Alberto Lerner <alerner@10gen.com> | 2010-06-08 09:06:35 -0400 |
---|---|---|
committer | Alberto Lerner <alerner@10gen.com> | 2010-06-08 09:06:35 -0400 |
commit | 164e6e9fb3736681ab50065212b104e41312840a (patch) | |
tree | d5011e773f30465e41e7c0d0c24bf99c8cf3a66a /util/histogram.cpp | |
parent | 374fdf83e46642de2c042fbfb3483eca085c183e (diff) | |
download | mongo-164e6e9fb3736681ab50065212b104e41312840a.tar.gz |
Build fix, take two (truly disambiguate pow)
Diffstat (limited to 'util/histogram.cpp')
-rw-r--r-- | util/histogram.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/histogram.cpp b/util/histogram.cpp index 5c2e174e5a6..bdfffd48604 100644 --- a/util/histogram.cpp +++ b/util/histogram.cpp @@ -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; |