X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Finterval.hh;h=1b095dedc307e1ed8a5460b561a5fc87b23e3b90;hb=9f3572d98bb948c9689cd1f75401a029451fa001;hp=7b7d4f54e5b98c74310e569986c187ab6481e17c;hpb=04265f11d1f21416ccebd2dcaa1d903dc781b36e;p=lilypond.git diff --git a/flower/include/interval.hh b/flower/include/interval.hh index 7b7d4f54e5..1b095dedc3 100644 --- a/flower/include/interval.hh +++ b/flower/include/interval.hh @@ -128,9 +128,9 @@ struct Interval_t : public Drul_array at (RIGHT) = t; } - static bool left_less (Interval_t const &a, Interval_t const &b) + static int left_comparison (Interval_t const &a, Interval_t const &b) { - return a[LEFT] < b[RIGHT]; + return sign (a[LEFT] - b[RIGHT]); } };