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:
Karoy Lorentey committed 2023-04-10 16:50:37 -07:00
1 parent 83bc546471
commit 96d7162888
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)
}
}