mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-09-19 05:00:48 +00:00
Fix Swift compiler error in BLEConnectTimeoutPolicyTests (missing count parameter)
This commit is contained in:
parent
822679e75e
commit
55d7cd460f
@ -91,7 +91,7 @@ struct BLEConnectTimeoutPolicyTests {
|
||||
private final class CBPeripheralMock {
|
||||
static func create() -> CBPeripheral {
|
||||
let dummy = UnsafeMutableRawPointer.allocate(byteCount: 256, alignment: 16)
|
||||
dummy.initializeMemory(as: UInt8.self, repeating: 0)
|
||||
dummy.initializeMemory(as: UInt8.self, repeating: 0, count: 256)
|
||||
return Unmanaged<CBPeripheral>.fromOpaque(dummy).takeUnretainedValue()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user