Add ssize and remove static_casts
[alexxy/gromacs.git] / src / gromacs / trajectoryanalysis / modules / select.cpp
index de253b201a0fada8f2e213a4db5267974cf95abf..98dc92a40c85986908484620bf5998d5edea9453 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2009,2010,2011,2012,2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2011,2012,2013,2014,2015,2016,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.
@@ -206,7 +206,7 @@ IndexFileWriterModule::pointsAdded(const AnalysisDataPointSetRef &points)
     if (points.firstColumn() == 0)
     {
         ++currentGroup_;
-        GMX_RELEASE_ASSERT(currentGroup_ < static_cast<int>(groups_.size()),
+        GMX_RELEASE_ASSERT(currentGroup_ < ssize(groups_),
                            "Too few groups initialized");
         if (bFirstFrame || groups_[currentGroup_].bDynamic)
         {