diff --git a/Sources/OpenCombine/Helpers/Violations.swift b/Sources/OpenCombine/Helpers/Violations.swift index cebcfb99..78eb999d 100644 --- a/Sources/OpenCombine/Helpers/Violations.swift +++ b/Sources/OpenCombine/Helpers/Violations.swift @@ -27,7 +27,7 @@ extension Subscribers.Demand { @_transparent @inline(__always) internal func assertNonZero() { - precondition(rawValue <= 0x8000_0000_0000_0000) - precondition(rawValue > 0) + precondition(rawValue <= Subscribers.Demand.unlimited.rawValue) + precondition(rawValue > Subscribers.Demand.none.rawValue) } }