Skip to content

Commit 83ccdbb

Browse files
authored
Merge pull request #67008 from swiftwasm/pr-6ef40aaab01ba71657ce9da3a407b22213843b88
[test] Make KeyPath test pointer-size agnostic part 2
2 parents 24c62bc + cadc20c commit 83ccdbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/KeyPath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ if #available(SwiftStdlib 5.9, *) {
11001100
let catNameKp = _createOffsetBasedKeyPath(
11011101
root: Cat.self,
11021102
value: String.self,
1103-
offset: 16
1103+
offset: 2 * MemoryLayout<UnsafeRawPointer>.size
11041104
) as? KeyPath<Cat, String>
11051105

11061106
expectNotNil(catNameKp)

0 commit comments

Comments
 (0)