mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
silence some "comparison between signed and unsigned integer expressions"
warnings llvm-svn: 37177
This commit is contained in:
parent
c963beca3b
commit
c68a1721c2
@ -147,7 +147,7 @@ public:
|
||||
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;
|
||||
@ -159,7 +159,7 @@ public:
|
||||
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;
|
||||
@ -189,7 +189,7 @@ public:
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user