|
@@ -119,7 +119,7 @@ private:
|
|
|
|
|
|
mMaxSize = inMaxSize;
|
|
|
mMaxLoad = uint32((cMaxLoadFactorNumerator * inMaxSize) / cMaxLoadFactorDenominator);
|
|
|
- size_type required_size = mMaxSize * (sizeof(KeyValue) + 1) + 15; // Add 15 bytes to mirror the first 15 bytes of the control values
|
|
|
+ size_t required_size = size_t(mMaxSize) * (sizeof(KeyValue) + 1) + 15; // Add 15 bytes to mirror the first 15 bytes of the control values
|
|
|
if constexpr (cNeedsAlignedAllocate)
|
|
|
mData = reinterpret_cast<KeyValue *>(AlignedAllocate(required_size, alignof(KeyValue)));
|
|
|
else
|