Skip to content

Commit

Permalink
static-cast arguments to pow for Mac OS X compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Dec 19, 2014
1 parent 0781f6a commit 5e694ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hllcounter.cc
Expand Up @@ -34,8 +34,8 @@ std::map<int, std::vector<double> > biasData;
double get_alpha(const int p)
{
if ((p < 4) or (p > 16)) {
double valid_lower_bound = 1.04 / std::sqrt(std::pow(2, 17));
double valid_upper_bound = 1.04 / std::sqrt(std::pow(2, 3));
double valid_lower_bound = 1.04 / std::sqrt(std::pow(static_cast<float>(2), 17));
double valid_upper_bound = 1.04 / std::sqrt(std::pow(static_cast<float>(2), 3));

std::stringstream message;
if (p < 4) {
Expand Down

0 comments on commit 5e694ff

Please sign in to comment.