warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37177
91177308-0d34-0410-b5e6-
96231b3b80d8
destroy_range(Begin+N, End);
End = Begin+N;
} else if (N > size()) {
destroy_range(Begin+N, End);
End = Begin+N;
} else if (N > size()) {
- if (Capacity-Begin < N)
+ if (unsigned(Capacity-Begin) < N)
grow(N);
construct_range(End, Begin+N, T());
End = Begin+N;
grow(N);
construct_range(End, Begin+N, T());
End = Begin+N;
destroy_range(Begin+N, End);
End = Begin+N;
} else if (N > size()) {
destroy_range(Begin+N, End);
End = Begin+N;
} else if (N > size()) {
- if (Capacity-Begin < N)
+ if (unsigned(Capacity-Begin) < N)
grow(N);
construct_range(End, Begin+N, NV);
End = Begin+N;
grow(N);
construct_range(End, Begin+N, NV);
End = Begin+N;
void assign(unsigned NumElts, const T &Elt) {
clear();
void assign(unsigned NumElts, const T &Elt) {
clear();
- if (Capacity-Begin < NumElts)
+ if (unsigned(Capacity-Begin) < NumElts)
grow(NumElts);
End = Begin+NumElts;
construct_range(Begin, End, Elt);
grow(NumElts);
End = Begin+NumElts;
construct_range(Begin, End, Elt);