File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -333,8 +333,8 @@ ThreadSafeTrieRawHashMapBase::ThreadSafeTrieRawHashMapBase(
333
333
std::optional<size_t > NumRootBits, std::optional<size_t > NumSubtrieBits)
334
334
: ContentAllocSize(ContentAllocSize), ContentAllocAlign(ContentAllocAlign),
335
335
ContentOffset(ContentOffset),
336
- NumRootBits(NumRootBits ? *NumRootBits : DefaultNumRootBits),
337
- NumSubtrieBits(NumSubtrieBits ? *NumSubtrieBits : DefaultNumSubtrieBits),
336
+ NumRootBits(NumRootBits.value_or( DefaultNumRootBits) ),
337
+ NumSubtrieBits(NumSubtrieBits.value_or( DefaultNumSubtrieBits) ),
338
338
ImplPtr(nullptr ) {
339
339
// Assertion checks for reasonable configuration. The settings below are not
340
340
// hard limits on most platforms, but a reasonable configuration should fall
You can’t perform that action at this time.
0 commit comments