diff --git a/Sources/Capsule/_BitmapIndexedMapNode.swift b/Sources/Capsule/_BitmapIndexedMapNode.swift index 1d83c13b..15116ca2 100644 --- a/Sources/Capsule/_BitmapIndexedMapNode.swift +++ b/Sources/Capsule/_BitmapIndexedMapNode.swift @@ -56,7 +56,7 @@ final class BitmapIndexedMapNode: MapNode where Key: Hashable { let memory = UnsafeMutableRawPointer.allocate( byteCount: dataCapacityInBytes + trieCapacityInBytes, - alignment: 8) + alignment: Swift.max(MemoryLayout.alignment, MemoryLayout.alignment)) let dataBaseAddress = memory.advanced(by: trieCapacityInBytes).bindMemory(to: DataBufferElement.self, capacity: dataCapacity) let trieBaseAddress = memory.bindMemory(to: TrieBufferElement.self, capacity: trieCapacity)