1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

Fix deprecation warning

This commit is contained in:
Daniel Barber 2020-02-14 13:58:26 -05:00
parent 3b4b5f5b5c
commit c0f8badbb5
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -67,7 +67,7 @@ extension MPDClient {
mpd_return_pair(self.connection, binaryPair.pair)
_ = data[offset...].withUnsafeMutableBytes { (pointer) in
mpd_recv_binary(self.connection, pointer, chunkSize)
mpd_recv_binary(self.connection, pointer.baseAddress, chunkSize)
}
guard mpd_response_finish(self.connection) else { return }