mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Fix warnings in non-ObjC platforms. (#11200)
This commit is contained in:
@@ -5507,9 +5507,9 @@ extension ${Self}.Index {
|
||||
#if _runtime(_ObjC)
|
||||
case (._cocoa(let lhsCocoa), ._cocoa(let rhsCocoa)):
|
||||
return lhsCocoa == rhsCocoa
|
||||
#endif
|
||||
default:
|
||||
_preconditionFailure("comparing indexes from different sets")
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5527,9 +5527,9 @@ extension ${Self}.Index {
|
||||
#if _runtime(_ObjC)
|
||||
case (._cocoa(let lhsCocoa), ._cocoa(let rhsCocoa)):
|
||||
return lhsCocoa < rhsCocoa
|
||||
#endif
|
||||
default:
|
||||
_preconditionFailure("comparing indexes from different sets")
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user