Skip to content

Commit b2706c2

Browse files
wasm: fix _createOffsetBasedKeyPath test for 32-bit platform
1 parent 9a6c318 commit b2706c2

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

10811081
expectNotNil(dogAgeKp)

0 commit comments

Comments
 (0)