Fix cppcheck-1.67 warnings
[alexxy/gromacs.git] / src / gromacs / correlationfunctions / expfit.c
index 704943c3279fa52f895754baaad13d1ba58fa101..490e0be4f83cbeb64aadb4fe524b27d17be8e630 100644 (file)
@@ -285,7 +285,7 @@ static double lmc_errest_3_parm(double x, const double *a)
 
     if (a[0] != 0)
     {
-        e1 = exp(-x/a[0]) - 1;
+        e1 = gmx_expm1(-x/a[0]);
     }
     else
     {
@@ -293,7 +293,7 @@ static double lmc_errest_3_parm(double x, const double *a)
     }
     if (a[2] != 0)
     {
-        e2 = exp(-x/a[2]) - 1;
+        e2 = gmx_expm1(-x/a[2]);
     }
     else
     {