Fix compiler warnings on windows
authorPaul Bauer <paul.bauer.q@gmail.com>
Thu, 9 Jan 2020 16:41:48 +0000 (17:41 +0100)
committerChristian Blau <cblau@gerrit.gromacs.org>
Fri, 10 Jan 2020 13:56:35 +0000 (14:56 +0100)
Came up during other builds, but didn't make any sense.

Change-Id: Ie57f4ce30d35dbb1db927b91902045fbbcffe8f0

src/gromacs/topology/forcefieldparameters.h
src/gromacs/topology/idef.h
src/gromacs/topology/topology.h

index 636e86668cc863ab777b02bc8f2c3ef915d8f073..05342612190d128d08c7e8784afdeb002fbf3278 100644 (file)
@@ -55,7 +55,7 @@ struct gmx_ffparams_t
     {
         GMX_ASSERT(iparams.size() == functype.size(), "Parameters and function types go together");
 
-        return gmx::ssize(functype);
+        return static_cast<int>(functype.size());
     }
 
     /* TODO: Consider merging functype and iparams, either by storing
index b346e96fe303f3e587f180c86741b03560232590..e19e976c6425ff5487a850666ddf01ec1eb39fe9 100644 (file)
@@ -220,7 +220,7 @@ typedef int t_functype;
 struct InteractionList
 {
     /* Returns the total number of elements in iatoms */
-    int size() const { return gmx::ssize(iatoms); }
+    int size() const { return static_cast<int>(iatoms.size()); }
 
     /* List of interactions, see explanation further down */
     std::vector<int> iatoms;
index f883afb0d8b852c5b70f9d02377dc5bdd29b126a..d5b633ee061e9f7bae21e03ebed2b4d4d858e0f6 100644 (file)
@@ -132,7 +132,7 @@ struct SimulationGroups
      */
     int numberOfGroupNumbers(SimulationAtomGroupType group) const
     {
-        return gmx::ssize(groupNumbers[group]);
+        return static_cast<int>(groupNumbers[group].size());
     }
 };