Skip to content

Commit

Permalink
Merge pull request #199 from jakirkham/fix_sqrt_integral
Browse files Browse the repository at this point in the history
Cast before and after call to `sqrt`
  • Loading branch information
bragadeesh authored Jun 27, 2017
2 parents ae65b58 + b28e27d commit c24db97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/plan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static bool split1D_for_inplace(size_t num, vector<vector<size_t> > &splitNums,

num = num / divide_factor;
//now the remaining num should have even number of pow2, pow3 and pow5 and we can do sqrt
size_t temp = sqrt(num);
size_t temp = (size_t)sqrt((double)num);
vector<size_t> splitVec;
splitVec.push_back(temp*divide_factor);
splitVec.push_back(temp);
Expand Down

0 comments on commit c24db97

Please sign in to comment.