diff --git a/Sources/Utilities.swift b/Sources/Utilities.swift index 4fb94c5f..42f385f3 100644 --- a/Sources/Utilities.swift +++ b/Sources/Utilities.swift @@ -643,7 +643,7 @@ class Buffer { init(capacity: Int) { self.capacity = capacity self.buffer = UnsafeMutablePointer.allocate(capacity: capacity) - buffer.initialize(to: 0) + buffer.initialize(repeating: 0, count: capacity) } deinit {