Skip to content

Commit 796b469

Browse files
committedFeb 20, 2019
Ensure the compiler knows this is an object too

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Foundation/FileHandle.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ open class FileHandle : NSObject, NSSecureCoding {
110110
// Duplicate the file descriptor.
111111
// Closing the file descriptor while Dispatch is monitoring it leads to undefined behavior; guard against that.
112112
let fd = dup(fileDescriptor)
113-
let source: DispatchSourceProtocol
113+
let source: AnyObject & DispatchSourceProtocol
114114
if reading {
115115
source = DispatchSource.makeReadSource(fileDescriptor: fd, queue: queue)
116116
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.