Skip to content

Commit 6f0b46c

Browse files
kateinoigakukunrunner
authored andcommitted
[test] Make KeyPath test pointer-size agnostic part 2
1 parent 3df8f70 commit 6f0b46c

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
@@ -1097,7 +1097,7 @@ if #available(SwiftStdlib 5.9, *) {
10971097
let catNameKp = _createOffsetBasedKeyPath(
10981098
root: Cat.self,
10991099
value: String.self,
1100-
offset: 16
1100+
offset: 2 * MemoryLayout<UnsafeRawPointer>.size
11011101
) as? KeyPath<Cat, String>
11021102

11031103
expectNotNil(catNameKp)

0 commit comments

Comments
 (0)