🚨 fix Wsign-conversion warning
This commit is contained in:
parent
6cdc1c2f11
commit
45e18dc542
@ -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 ]
|
||||
// ^ ^
|
||||
|
||||
@ -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 ]
|
||||
// ^ ^
|
||||
|
||||
Loading…
Reference in New Issue
Block a user