Skip to content

Commit 00ace66

Browse files
committed
Round up sizeWithMaxSize
1 parent 4733da2 commit 00ace66

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
@@ -3537,7 +3537,7 @@ internal struct GetKeyPathClassAndInstanceSizeFromPattern
35373537

35383538
mutating func finish() {
35393539
sizeWithMaxSize = size
3540-
roundUpToPointerAlignment()
3540+
sizeWithMaxSize = MemoryLayout<Int>._roundingUpToAlignment(sizeWithMaxSize)
35413541
sizeWithMaxSize &+= MemoryLayout<Int>.size
35423542
}
35433543
}

0 commit comments

Comments
 (0)