Skip to content

Commit 40ce39c

Browse files
committed
Round up sizeWithMaxSize
1 parent 713b460 commit 40ce39c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3533,7 +3533,7 @@ internal struct GetKeyPathClassAndInstanceSizeFromPattern
35333533

35343534
mutating func finish() {
35353535
sizeWithMaxSize = size
3536-
roundUpToPointerAlignment()
3536+
sizeWithMaxSize = MemoryLayout<Int>._roundingUpToAlignment(sizeWithMaxSize)
35373537
sizeWithMaxSize &+= MemoryLayout<Int>.size
35383538
}
35393539
}

0 commit comments

Comments
 (0)