Add ssize and remove static_casts
[alexxy/gromacs.git] / src / gromacs / gmxana / thermochemistry.cpp
index 52c5a0f209a5295fca97db9789e97e29ca38bc49..f8aa9d5a58f16ab6983a73d05cf896abd70aaeb7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2017,2018, by the GROMACS development team, led by
+ * Copyright (c) 2017,2018,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -214,8 +214,8 @@ double calcSchlitterEntropy(gmx::ArrayRef<const real> eigval,
     double evcorr = NANO*NANO*AMU;
     if (debug)
     {
-        fprintf(debug, "n = %d, kteh = %g evcorr = %g\n",
-                static_cast<int>(eigval.size()), kteh, evcorr);
+        fprintf(debug, "n = %td, kteh = %g evcorr = %g\n",
+                ssize(eigval), kteh, evcorr);
     }
     double deter = 0;
     for (gmx::index i = nskip; i < eigval.size(); i++)