mirror of
https://github.com/apple/swift-collections
synced 2026-11-30 05:18:44 +00:00
BigString: Fix String.Index._knownScalarAligned
This member isn’t currently used, but unlike its counterpart in the stdlib, this one accidentally sets the character-alignment bit.
This commit is contained in:
1 file changed
+1
-1
@@ -64,7 +64,7 @@ extension String.Index {
|
||||
}
|
||||
|
||||
var _knownScalarAligned: String.Index {
|
||||
let r = _abi_rawBits | Self._abi_characterAlignmentBit | Self._abi_scalarAlignmentBit
|
||||
let r = _abi_rawBits | Self._abi_scalarAlignmentBit
|
||||
return unsafeBitCast(r, to: String.Index.self)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user