Fix cppcheck-1.67 warnings
[alexxy/gromacs.git] / src / gromacs / gmxana / geminate.c
index 2b8603dfe68e59f02168eec0086eaf6f975c277e..d06a4b41d8e91e8ffde3df410454fe98a4181083 100644 (file)
@@ -515,7 +515,7 @@ static double eq10v2(double theoryCt[], double time[], int manytimes,
 /* This returns the real-valued index(!) to an ACF, equidistant on a log scale. */
 static double getLogIndex(const int i, const t_gemParams *params)
 {
-    return (exp(((double)(i)) * params->logQuota) -1);
+    return gmx_expm1(((double)(i)) * params->logQuota);
 }
 
 extern t_gemParams *init_gemParams(const double sigma, const double D,