🚨 fix Wsign-conversion warning

This commit is contained in:
Niels Lohmann 2021-10-30 18:32:41 +02:00
parent 6cdc1c2f11
commit 45e18dc542
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ template <class Key, class T, class IgnoredLess = std::less<Key>,
// first last
// remove the unneeded elements at the end of the vector
Container::resize(static_cast<size_type>(this->size() - elements_affected));
Container::resize(this->size() - static_cast<size_type>(elements_affected));
// [ a, b, c, d, h, i, j ]
// ^ ^

View File

@ -17530,7 +17530,7 @@ template <class Key, class T, class IgnoredLess = std::less<Key>,
// first last
// remove the unneeded elements at the end of the vector
Container::resize(static_cast<size_type>(this->size() - elements_affected));
Container::resize(this->size() - static_cast<size_type>(elements_affected));
// [ a, b, c, d, h, i, j ]
// ^ ^