From 9f90e8594631dd7f7cac3d08fba2d0f74c0fe1bc Mon Sep 17 00:00:00 2001 From: Igor Kim Date: Wed, 9 Jun 2021 15:21:29 +0200 Subject: [PATCH] add OpaquePointer conversion --- Sources/IperfSwift/IperfRunner.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/IperfSwift/IperfRunner.swift b/Sources/IperfSwift/IperfRunner.swift index 2b2045c..b1baf0d 100644 --- a/Sources/IperfSwift/IperfRunner.swift +++ b/Sources/IperfSwift/IperfRunner.swift @@ -95,7 +95,7 @@ public class IperfRunner { return } while true { - let intervalResultsP: UnsafeMutablePointer? = extract_iperf_interval_results(stream) + let intervalResultsP: UnsafeMutablePointer? = extract_iperf_interval_results(OpaquePointer(stream)) if let intervalResults = intervalResultsP?.pointee { result.streams.append(IperfStreamIntervalResult(intervalResults)) }