Skip to content

Commit 52a7051

Browse files
committed
Update KeyPath.swift
1 parent f95e9e4 commit 52a7051

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,17 +1210,17 @@ internal struct ComputedArgumentSize {
12101210
return 0
12111211
}
12121212

1213-
#if _pointerBitWidth(_64)
1213+
#if _pointerBitWidth(_64)
12141214
// On 64 bit, the only higher alignment a type could have is 16 byte.
12151215
return 16
1216-
#elseif _pointerBitWidth(_32)
1216+
#elseif _pointerBitWidth(_32)
12171217
// 0 = 8 byte
12181218
// 1 = 16 byte
12191219
let shift = value &>> Self.alignmentShift
12201220
return shift == 1 ? 16 : 8
1221-
#else
1222-
#error("Unsupported platform")
1223-
#endif
1221+
#else
1222+
#error("Unsupported platform")
1223+
#endif
12241224
}
12251225

12261226
// The setter should only be called when there is or will be padding.
@@ -1232,6 +1232,9 @@ internal struct ComputedArgumentSize {
12321232
let reduced = newValue == 16 ? 1 : 0
12331233
let shift = reduced &<< Self.alignmentShift
12341234
value |= shift
1235+
#else
1236+
#error("Unsupported platform")
1237+
#endif
12351238
}
12361239
}
12371240
}

0 commit comments

Comments
 (0)