We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044e53f commit 0473190Copy full SHA for 0473190
stdlib/public/core/SmallString.swift
@@ -79,8 +79,11 @@ internal struct _SmallString {
79
extension _SmallString {
80
@inlinable @inline(__always)
81
internal static var capacity: Int {
82
-#if _pointerBitWidth(_32) || _pointerBitWidth(_16)
+#if _pointerBitWidth(_32) && os(watchOS)
83
return 10
84
+#elseif _pointerBitWidth(_32) || _pointerBitWidth(_16)
85
+ // Note: changed from 10 for contiguous storage.
86
+ return 8
87
#elseif os(Android) && arch(arm64)
88
return 14
89
#elseif _pointerBitWidth(_64)
0 commit comments