Skip to content

Commit

Permalink
Update stochMath.h
Browse files Browse the repository at this point in the history
Update abs to C math.h std::abs function with (int) input.
  • Loading branch information
lottpaul authored Apr 2, 2018
1 parent f55e82d commit 965ee4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stochMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ namespace StochHMM{
bool negative(false);
T max = std::numeric_limits<T>::max();
if (base<1){
base=abs(base);
base=std::abs((int)base);
if (exponent%2!=0){
negative=true;
}
Expand Down Expand Up @@ -583,4 +583,4 @@ namespace StochHMM{
}

}
#endif
#endif

0 comments on commit 965ee4f

Please sign in to comment.