From e8090877c20794b86f3f8ab6951743264564030a Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Fri, 22 Sep 2023 21:32:50 +0100 Subject: [PATCH] fix --- Sources/Utilities.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {