mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
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
This commit is contained in:
@@ -618,7 +618,7 @@ public:
|
|||||||
unsigned OldNumBuckets = NumBuckets;
|
unsigned OldNumBuckets = NumBuckets;
|
||||||
BucketT *OldBuckets = Buckets;
|
BucketT *OldBuckets = Buckets;
|
||||||
|
|
||||||
allocateBuckets(std::max<unsigned>(64, NextPowerOf2(AtLeast-1)));
|
allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1))));
|
||||||
assert(Buckets);
|
assert(Buckets);
|
||||||
if (!OldBuckets) {
|
if (!OldBuckets) {
|
||||||
this->BaseT::initEmpty();
|
this->BaseT::initEmpty();
|
||||||
|
Reference in New Issue
Block a user