X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Finterval.tcc;h=2ad1fa606b7add18165099cde00bd34263af4b93;hb=06e603a47cce832f2ed45edc0dd4b2c168877703;hp=2f002a7e008e24e438d306299268e2aeb8290013;hpb=1c846b2c2348b4e0ca4a3c2e8fb267047ba2d203;p=lilypond.git diff --git a/flower/include/interval.tcc b/flower/include/interval.tcc index 2f002a7e00..2ad1fa606b 100644 --- a/flower/include/interval.tcc +++ b/flower/include/interval.tcc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1996--2011 Han-Wen Nienhuys + Copyright (C) 1996--2012 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -70,14 +70,14 @@ void Interval_t::set_empty () { at (LEFT) = (T) infinity (); - at (RIGHT) = (T) -infinity (); + at (RIGHT) = (T) - infinity (); } template void Interval_t::set_full () { - at (LEFT) = (T) -infinity (); + at (LEFT) = (T) - infinity (); at (RIGHT) = (T) infinity (); } @@ -149,7 +149,7 @@ Interval_t::to_string () const string s ("["); return (s + T_to_string (at (LEFT)) + string (",") - + T_to_string (at (RIGHT)) + string ("]")); + + T_to_string (at (RIGHT)) + string ("]")); } template @@ -159,7 +159,7 @@ Interval_t::contains (T r) const return r >= at (LEFT) && r <= at (RIGHT); } -#define INTERVAL__INSTANTIATE(T) struct Interval_t; \ +#define INTERVAL__INSTANTIATE(T) struct Interval_t; \ template int Interval__compare (const Interval_t &, Interval_t const &) #endif // INTERVAL_TCC