diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-05-05 18:30:58 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-05-05 18:30:58 +0000 |
commit | 591bfc8aa66d4d415be0d947e2764bcc9f5e25b7 (patch) | |
tree | eefdfb1d225da0317e7f7912079c430b5c3ed92c /include/llvm/ADT/UniqueVector.h | |
parent | d2dcb090a5db3cf20f4b74cc5c31424f758a7fa6 (diff) | |
download | external_llvm-591bfc8aa66d4d415be0d947e2764bcc9f5e25b7.tar.gz external_llvm-591bfc8aa66d4d415be0d947e2764bcc9f5e25b7.tar.bz2 external_llvm-591bfc8aa66d4d415be0d947e2764bcc9f5e25b7.zip |
Fix more -Wshorten-64-to-32 warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/UniqueVector.h')
-rw-r--r-- | include/llvm/ADT/UniqueVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/UniqueVector.h b/include/llvm/ADT/UniqueVector.h index 76e8e0b72a..b114b8231e 100644 --- a/include/llvm/ADT/UniqueVector.h +++ b/include/llvm/ADT/UniqueVector.h @@ -41,7 +41,7 @@ public: if (Val) return Val; // Compute ID for entry. - Val = Vector.size() + 1; + Val = static_cast<unsigned>(Vector.size()) + 1; // Insert in vector. Vector.push_back(Entry); |