[llvm-commits] CVS: llvm/include/llvm/ADT/SmallVector.h
Chris Lattner
sabre at nondot.org
Thu May 17 13:01:59 PDT 2007
Changes in directory llvm/include/llvm/ADT:
SmallVector.h updated: 1.29 -> 1.30
---
Log message:
silence some "comparison between signed and unsigned integer expressions"
warnings
---
Diffs of the changes: (+3 -3)
SmallVector.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/ADT/SmallVector.h
diff -u llvm/include/llvm/ADT/SmallVector.h:1.29 llvm/include/llvm/ADT/SmallVector.h:1.30
--- llvm/include/llvm/ADT/SmallVector.h:1.29 Thu May 17 13:29:01 2007
+++ llvm/include/llvm/ADT/SmallVector.h Thu May 17 15:01:40 2007
@@ -147,7 +147,7 @@
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 @@
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 @@
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);
More information about the llvm-commits
mailing list