We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ffd6fd commit abbe7d2Copy full SHA for abbe7d2
src/swift/Time.swift
@@ -79,7 +79,7 @@ public struct DispatchTime : Comparable {
79
// UInt64.max means distantFuture. Do not try to scale it.
80
if rawValue != UInt64.max && DispatchTime.timebaseInfo.numer != DispatchTime.timebaseInfo.denom {
81
(result, overflow) = result.multipliedReportingOverflow(by: UInt64(DispatchTime.timebaseInfo.numer))
82
- result = (overflow ? UInt64.max : result)/UInt64(DispatchTime.timebaseInfo.denom)
+ result = overflow ? UInt64.max : result / UInt64(DispatchTime.timebaseInfo.denom)
83
}
84
#endif
85
return result
0 commit comments