[stdlib] Fix warnings in non-ObjC platforms. (#11200)

This commit is contained in:
Rintaro Ishizaki
2017-07-26 22:42:55 +09:00
committed by GitHub
parent 28b5bbf1dc
commit c36cb57054

View File

@@ -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
}
}
}