GCC warns about a comparison between signed and unsigned values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2012-02-23 08:23:53 +00:00
parent 4b794f8191
commit 6212d312e7

View File

@ -235,7 +235,7 @@ public:
/// Note that end() changes when elements are erased, unlike std::list.
///
iterator erase(iterator I) {
assert(I - begin() < size() && "Invalid iterator");
assert(unsigned(I - begin()) < size() && "Invalid iterator");
if (I != end() - 1) {
*I = Dense.back();
unsigned BackKey = KeyOf(Dense.back());