Fix cppcheck-1.67 warnings
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_analyze.c
index 8d1eab6bee08e2ce8bb27576d8717a506d94a437..1c323e14b23d6bdc14879c6e80ad3ba907d8d05a 100644 (file)
@@ -89,7 +89,7 @@ static void power_fit(int n, int nset, real **val, real *t)
         fprintf(stdout, "First time is not larger than 0, using index number as time for power fit\n");
         for (i = 0; i < n; i++)
         {
-            x[i] = log(i+1);
+            x[i] = gmx_log1p(i);
         }
     }