From ef7b7f4c8912446e555a1f509053c572bc5ebec4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 30 Mar 2023 00:37:23 +0200 Subject: [PATCH] Fix timecnt_t less-than-equal operator --- libs/temporal/temporal/timeline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/temporal/temporal/timeline.h b/libs/temporal/temporal/timeline.h index 37e79225c0..880b5ee36a 100644 --- a/libs/temporal/temporal/timeline.h +++ b/libs/temporal/temporal/timeline.h @@ -403,7 +403,7 @@ class LIBTEMPORAL_API timecnt_t { bool operator> (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance > other.distance (); else return expensive_gt (other); } bool operator>= (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance >= other.distance(); else return expensive_gte (other); } bool operator< (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance < other.distance(); else return expensive_lt (other); } - bool operator<= (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance <= other.distance(); else return expensive_gte (other); } + bool operator<= (timecnt_t const & other) const { if (_distance.flagged() == other.distance().flagged()) return _distance <= other.distance(); else return expensive_lte (other); } timecnt_t & operator= (timecnt_t const & other) { if (this != &other) {