Add ssize and remove static_casts
[alexxy/gromacs.git] / src / gromacs / trajectoryanalysis / modules / angle.cpp
index d476fa5c134224993136f134190d42054658b954..ff81c402e453f8b76f1c5efb5ff7d90d134e95b8 100644 (file)
@@ -200,7 +200,7 @@ class AnglePositionIterator
         //! Returns the currently active selection.
         const Selection &currentSelection() const
         {
-            GMX_ASSERT(currentSelection_ < static_cast<int>(selections_.size()),
+            GMX_ASSERT(currentSelection_ < ssize(selections_),
                        "Accessing an invalid selection");
             return selections_[currentSelection_];
         }