Merge branch 'master' into pygromacs
[alexxy/gromacs.git] / src / gromacs / gmxana / anadih.cpp
index 43b50af15e1a74e1243aa858a5a122056f09d554..027fdf10c3b6ce14a23ce5e76e6938fe77570800 100644 (file)
@@ -764,7 +764,7 @@ void make_histo(FILE *log,
         }
         fprintf(log, "Min data: %10g  Max data: %10g\n", minx, maxx);
     }
-    dx = (double)npoints/(maxx-minx);
+    dx = npoints/(maxx-minx);
     if (debug)
     {
         fprintf(debug,
@@ -911,7 +911,7 @@ void read_ang_dih(const char *trj_fn,
                 for (i = 0; (i < nangles); i++)
                 {
                     real dd = angles[cur][i];
-                    angles[cur][i] = std::atan2(sin(dd), cos(dd));
+                    angles[cur][i] = std::atan2(std::sin(dd), std::cos(dd));
                 }
             }
             else