Skip to content

Commit 92d592a

Browse files
committed
fix bias
1 parent 44268d5 commit 92d592a

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

stdlib/public/core/StringObject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ extension _StringObject {
444444
#if _pointerBitWidth(_64) && false
445445
return 32
446446
#elseif _pointerBitWidth(_32) || true
447-
return 20
447+
return 32
448448
#else
449449
#error("Unknown platform")
450450
#endif

test/embedded/stdlib-strings.swift

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,10 @@ func printUppercase(_ string: String) {
2424
@main
2525
struct Main {
2626
static func main() {
27-
let str = "Hello"
28-
print(str)
29-
// CHECK: Hello
30-
let str2 = "World"
31-
print(str2)
32-
// CHECK: World
33-
printUppercase("abcde")
34-
// CHECK: ABCDE
35-
let str3 = "! " + str2.uppercased()
36-
print(str3)
37-
// CHECK: ! WORLD
27+
let str = "Hello Hello This Is A Long String"
28+
print(str.uppercased())
29+
for word in str.split(separator: " ") {
30+
print(word.lowercased())
31+
}
3832
}
3933
}

0 commit comments

Comments
 (0)