From 96d71628887275fc3010a0979cdebef15edde911 Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Mon, 10 Apr 2023 16:49:29 -0700 Subject: [PATCH] BigString: Fix String.Index._knownScalarAligned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This member isn’t currently used, but unlike its counterpart in the stdlib, this one accidentally sets the character-alignment bit. --- Sources/RopeModule/Utilities/String.Index+ABI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/RopeModule/Utilities/String.Index+ABI.swift b/Sources/RopeModule/Utilities/String.Index+ABI.swift index 193db89d..5c241da8 100644 --- a/Sources/RopeModule/Utilities/String.Index+ABI.swift +++ b/Sources/RopeModule/Utilities/String.Index+ABI.swift @@ -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) } }