diff options
| author | Tannin <sherb@gmx.net> | 2016-06-01 19:34:01 +0200 |
|---|---|---|
| committer | Tannin <sherb@gmx.net> | 2016-06-01 19:34:01 +0200 |
| commit | cbdea13a9c079f3de114cb96418b500e0f1d297a (patch) | |
| tree | 07f288d64a8d1492859e64c3aeef0abba203bba3 /src/profile.cpp | |
| parent | b36c66689912ccd4545bb8c1b712bcf887853e41 (diff) | |
minor cleanup
Diffstat (limited to 'src/profile.cpp')
| -rw-r--r-- | src/profile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/profile.cpp b/src/profile.cpp index 9106cebe..558d9114 100644 --- a/src/profile.cpp +++ b/src/profile.cpp @@ -473,7 +473,9 @@ void Profile::setModPriority(unsigned int index, int &newPriority) return; } - int newPriorityTemp = (std::max)(0, (std::min<int>)(m_ModStatus.size() - 1, newPriority)); + int newPriorityTemp = + (std::max)(0, (std::min<int>)(static_cast<int>(m_ModStatus.size()) - 1, + newPriority)); // don't try to place below overwrite while ((m_ModIndexByPriority.at(newPriorityTemp) >= m_ModStatus.size()) || |
