diff --git a/Sources/SortedCollections/BTree/_BTree.swift b/Sources/SortedCollections/BTree/_BTree.swift index dcaa6749..d8b12a42 100644 --- a/Sources/SortedCollections/BTree/_BTree.swift +++ b/Sources/SortedCollections/BTree/_BTree.swift @@ -31,7 +31,7 @@ internal struct _BTree { return 4 #else let capacityInBytes = 128 - return Swift.min(16, capacityInBytes / MemoryLayout.stride) + return Swift.max(16, capacityInBytes / MemoryLayout.stride) #endif } @@ -43,7 +43,7 @@ internal struct _BTree { return 5 #else let capacityInBytes = 2000 - return Swift.min(16, capacityInBytes / MemoryLayout.stride) + return Swift.max(16, capacityInBytes / MemoryLayout.stride) #endif }