From 214e89360eeb895bd3eef1ff66b8a9b88c9092f5 Mon Sep 17 00:00:00 2001 From: Liu Liu Date: Mon, 3 Jun 2024 18:38:06 -0400 Subject: [PATCH] Update API to fix warnings. --- src/sqlite/SQLiteWorkspaceDictionary.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlite/SQLiteWorkspaceDictionary.swift b/src/sqlite/SQLiteWorkspaceDictionary.swift index a4b9caa4b..05fb6523c 100644 --- a/src/sqlite/SQLiteWorkspaceDictionary.swift +++ b/src/sqlite/SQLiteWorkspaceDictionary.swift @@ -18,7 +18,7 @@ struct SQLiteWorkspaceDictionary: WorkspaceDictionary { init(namespace: String) { self.namespace = namespace locks = UnsafeMutablePointer.allocate(capacity: Self.size) - locks.assign(repeating: os_unfair_lock(), count: Self.size) + locks.update(repeating: os_unfair_lock(), count: Self.size) dictionaries = Array(repeating: [String: Any](), count: Self.size) subscriptions = Array( repeating: [String: [ObjectIdentifier: (Any?) -> Void]](), count: Self.size)