diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-17 20:01:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-17 20:01:40 +0000 |
commit | 26b146ccf10979809a8bfe9c2d798f4b6fbf39de (patch) | |
tree | dd01b11ff6b155475e84d9bb04b593f5cee6e6af /include | |
parent | bf8abe376c5dcae00492fafd38190f39b51c2596 (diff) | |
download | external_llvm-26b146ccf10979809a8bfe9c2d798f4b6fbf39de.zip external_llvm-26b146ccf10979809a8bfe9c2d798f4b6fbf39de.tar.gz external_llvm-26b146ccf10979809a8bfe9c2d798f4b6fbf39de.tar.bz2 |
silence some "comparison between signed and unsigned integer expressions"
warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/SmallVector.h | 6 |
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); |