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(
333333 std::optional<size_t > NumRootBits, std::optional<size_t > NumSubtrieBits)
334334 : ContentAllocSize(ContentAllocSize), ContentAllocAlign(ContentAllocAlign),
335335 ContentOffset(ContentOffset),
336- NumRootBits(NumRootBits ? *NumRootBits : DefaultNumRootBits),
337- NumSubtrieBits(NumSubtrieBits ? *NumSubtrieBits : DefaultNumSubtrieBits),
336+ NumRootBits(NumRootBits.value_or( DefaultNumRootBits) ),
337+ NumSubtrieBits(NumSubtrieBits.value_or( DefaultNumSubtrieBits) ),
338338 ImplPtr(nullptr ) {
339339 // Assertion checks for reasonable configuration. The settings below are not
340340 // hard limits on most platforms, but a reasonable configuration should fall
You can’t perform that action at this time.
0 commit comments