Skip to content

Commit cad6531

Browse files
[WASM] Add preprocessor condition for wasm32 to track latest upstream
1 parent 08549c7 commit cad6531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/StringStorage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ extension __StringStorage {
416416
let count = try initializer(buffer)
417417

418418
let countAndFlags = CountAndFlags(mortalCount: count, isASCII: false)
419-
#if arch(i386) || arch(arm)
419+
#if arch(i386) || arch(arm) || arch(wasm32)
420420
storage._count = countAndFlags.count
421421
storage._flags = countAndFlags.flags
422422
#else

0 commit comments

Comments
 (0)