Add ssize and remove static_casts
[alexxy/gromacs.git] / src / gromacs / analysisdata / dataframe.h
index 2646d0112711da97aa69c9af7ddd0e6aa298232c..883722985f2e2b619c94772b4b403b211b218f84 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2013,2014,2017, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2017,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.
@@ -655,7 +655,7 @@ class AnalysisDataFrameRef
             GMX_ASSERT(isValid(), "Invalid data frame accessed");
             GMX_ASSERT(pointSets_.size() == 1U && pointSets_[0].firstColumn() == 0,
                        "Convenience method not available for multiple point sets");
-            GMX_ASSERT(i >= 0 && i < static_cast<int>(values_.size()),
+            GMX_ASSERT(i >= 0 && i < ssize(values_),
                        "Out of range data access");
             return values_[i];
         }