Skip to content

Commit

Permalink
Merge pull request #702 from ged-lab/bugfix/hll/mac
Browse files Browse the repository at this point in the history
static-cast arguments to pow for Mac OS X compile
  • Loading branch information
luizirber committed Dec 19, 2014
2 parents 0781f6a + 5e694ff commit c30e205
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 c30e205

Please sign in to comment.