🚨 fix Wsign-conversion warning
This commit is contained in:
parent
c4b3407512
commit
6cdc1c2f11
@ -143,7 +143,7 @@ template <class Key, class T, class IgnoredLess = std::less<Key>,
|
|||||||
// first last
|
// first last
|
||||||
|
|
||||||
// remove the unneeded elements at the end of the vector
|
// remove the unneeded elements at the end of the vector
|
||||||
Container::resize(this->size() - elements_affected);
|
Container::resize(static_cast<size_type>(this->size() - elements_affected));
|
||||||
|
|
||||||
// [ a, b, c, d, h, i, j ]
|
// [ a, b, c, d, h, i, j ]
|
||||||
// ^ ^
|
// ^ ^
|
||||||
|
|||||||
@ -17530,7 +17530,7 @@ template <class Key, class T, class IgnoredLess = std::less<Key>,
|
|||||||
// first last
|
// first last
|
||||||
|
|
||||||
// remove the unneeded elements at the end of the vector
|
// remove the unneeded elements at the end of the vector
|
||||||
Container::resize(this->size() - elements_affected);
|
Container::resize(static_cast<size_type>(this->size() - elements_affected));
|
||||||
|
|
||||||
// [ a, b, c, d, h, i, j ]
|
// [ a, b, c, d, h, i, j ]
|
||||||
// ^ ^
|
// ^ ^
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user