Skip to content

Commit effa462

Browse files
Merge pull request #66771 from kateinoigakukun/pr-a74145962ac2dafc8e51b5d493b4c91d6d67d3e2
[test] Make KeyPath test pointer-size agnostic
2 parents a22b71f + 5cf10f2 commit effa462

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
@@ -1078,7 +1078,7 @@ if #available(SwiftStdlib 5.9, *) {
10781078
let dogAgeKp = _createOffsetBasedKeyPath(
10791079
root: Dog.self,
10801080
value: Int.self,
1081-
offset: 16
1081+
offset: MemoryLayout<String>.size
10821082
) as? KeyPath<Dog, Int>
10831083

10841084
expectNotNil(dogAgeKp)

0 commit comments

Comments
 (0)