diff options
author | Peng Cheng <gm4cheng@gmail.com> | 2013-05-01 14:07:02 +0000 |
---|---|---|
committer | Peng Cheng <gm4cheng@gmail.com> | 2013-05-01 14:07:02 +0000 |
commit | 711d324d50e5b335e98e576ce6725b056427e3f3 (patch) | |
tree | 34c6b9cd6c2548a4a7aba8b57f50e67f3a39c207 /include | |
parent | aae0298921d946a64385052ce6e678d36f936fb3 (diff) | |
download | external_llvm-711d324d50e5b335e98e576ce6725b056427e3f3.zip external_llvm-711d324d50e5b335e98e576ce6725b056427e3f3.tar.gz external_llvm-711d324d50e5b335e98e576ce6725b056427e3f3.tar.bz2 |
use static_cast to get rid of windows warning.
warning C4244: 'argument' : conversion from 'uint64_t' to 'const unsigned int', possible loss of data
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/DenseMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index d410619..31fd6d8 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -618,7 +618,7 @@ public: unsigned OldNumBuckets = NumBuckets; BucketT *OldBuckets = Buckets; - allocateBuckets(std::max<unsigned>(64, NextPowerOf2(AtLeast-1))); + allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1)))); assert(Buckets); if (!OldBuckets) { this->BaseT::initEmpty(); |