Skip to content

Commit d7ac383

Browse files
committed
Fix compiler error
1 parent 496eb4d commit d7ac383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/FoundationEssentials/TimeCalculations.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ extension Int64 {
148148
var years = remyears + (4 &* qCycles) + (100 &* cCycles) + (400 &* qcCycles)
149149

150150
var months = 0
151-
while Int64.daysInMonth(months) <= remdays {
152-
remdays -= Int64.daysInMonth(months)
151+
while daysInMonth(months) <= remdays {
152+
remdays -= daysInMonth(months)
153153

154154
// Unchecked because daysInMonth will crash if given a value greater than 12, so this
155155
// cannot exceed 12.

0 commit comments

Comments
 (0)