Skip to content

Commit 6fc3598

Browse files
committed
Round up sizeWithMaxSize
1 parent 325794e commit 6fc3598

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
@@ -3479,7 +3479,7 @@ internal struct GetKeyPathClassAndInstanceSizeFromPattern
34793479

34803480
mutating func finish() {
34813481
sizeWithMaxSize = size
3482-
roundUpToPointerAlignment()
3482+
sizeWithMaxSize = MemoryLayout<Int>._roundingUpToAlignment(sizeWithMaxSize)
34833483
sizeWithMaxSize &+= MemoryLayout<Int>.size
34843484
}
34853485
}

0 commit comments

Comments
 (0)