We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6fbd11 commit 6b05b7eCopy full SHA for 6b05b7e
src/swift/Time.swift
@@ -47,7 +47,6 @@ public struct DispatchTime : Comparable {
47
}
48
49
public func <(a: DispatchTime, b: DispatchTime) -> Bool {
50
- if a.rawValue == ~0 || b.rawValue == ~0 { return false }
51
return a.rawValue < b.rawValue
52
53
@@ -75,7 +74,11 @@ public struct DispatchWallTime : Comparable {
75
74
76
77
public func <(a: DispatchWallTime, b: DispatchWallTime) -> Bool {
78
+ if b.rawValue == ~0 {
+ return a.rawValue != ~0
79
+ } else if a.rawValue == ~0 {
80
+ return false
81
+ }
82
return -Int64(bitPattern: a.rawValue) < -Int64(bitPattern: b.rawValue)
83
84
0 commit comments