Skip to content

Commit 5bb5530

Browse files
committed
Round up sizeWithMaxSize
1 parent d334272 commit 5bb5530

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
@@ -3478,7 +3478,7 @@ internal struct GetKeyPathClassAndInstanceSizeFromPattern
34783478

34793479
mutating func finish() {
34803480
sizeWithMaxSize = size
3481-
roundUpToPointerAlignment()
3481+
sizeWithMaxSize = MemoryLayout<Int>._roundingUpToAlignment(sizeWithMaxSize)
34823482
sizeWithMaxSize &+= MemoryLayout<Int>.size
34833483
}
34843484
}

0 commit comments

Comments
 (0)