diff --git a/3party/opening_hours/opening_hours.cpp b/3party/opening_hours/opening_hours.cpp index 0adc164e1c..b3ccf02f60 100644 --- a/3party/opening_hours/opening_hours.cpp +++ b/3party/opening_hours/opening_hours.cpp @@ -345,7 +345,7 @@ bool WeekdayRange::HasWday(Weekday const wday) const return (GetStart() <= GetEnd()) ? GetStart() <= wday && wday <= GetEnd() - : wday >= GetEnd() || GetStart() <= wday; + : wday <= GetEnd() || GetStart() <= wday; } std::ostream & operator<<(std::ostream & ost, Weekday const wday)