aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/SmallVector.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
index 1212760..5fcb2b9 100644
--- a/include/llvm/ADT/SmallVector.h
+++ b/include/llvm/ADT/SmallVector.h
@@ -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);