This commit is contained in:
David Smith committed 2025-02-12 23:45:18 +00:00
1 parent 7f6e673750
commit 0c6ef16ca9
1 file changed
+1 -1
+1 -1
View File
@@ -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))
}
}