mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] String: Ensure indices are marked scalar aligned before rounding down to Character
This commit is contained in:
@@ -204,7 +204,7 @@ extension Substring {
|
||||
else {
|
||||
return false
|
||||
}
|
||||
return i == _roundDownToNearestCharacter(i)
|
||||
return i == _roundDownToNearestCharacter(i._scalarAligned)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user