mirror of
https://github.com/apple/swift-system
synced 2026-11-30 05:28:49 +00:00
Fix type
This commit is contained in:
1 parent
7f6e673750
commit
0c6ef16ca9
1 file changed
+1
-1
@@ -553,7 +553,7 @@ public struct IORing: ~Copyable {
|
||||
public subscript(position: Int) -> IOResource<T> {
|
||||
IOResource(resource: resources[position], index: position)
|
||||
}
|
||||
public subscript(position: Int16) -> IOResource<T> {
|
||||
public subscript(position: UInt16) -> IOResource<T> {
|
||||
IOResource(resource: resources[Int(position)], index: Int(position))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user