From 965ee4fbe2f2dac8868387989901369cba452086 Mon Sep 17 00:00:00 2001 From: Paul Lott Date: Mon, 2 Apr 2018 07:26:23 -0700 Subject: [PATCH] Update stochMath.h Update abs to C math.h std::abs function with (int) input. --- src/stochMath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stochMath.h b/src/stochMath.h index 2a838b49..2bc58389 100755 --- a/src/stochMath.h +++ b/src/stochMath.h @@ -136,7 +136,7 @@ namespace StochHMM{ bool negative(false); T max = std::numeric_limits::max(); if (base<1){ - base=abs(base); + base=std::abs((int)base); if (exponent%2!=0){ negative=true; } @@ -583,4 +583,4 @@ namespace StochHMM{ } } -#endif \ No newline at end of file +#endif