X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fmoment.hh;h=ed7c7b0741d34da984936e12f8c568708ce88ebf;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=f0c6fbb21b79b418f11b65e0a74ac3c72c0bbf56;hpb=31568c504806f35aac420a394c9eab07abd9faa7;p=lilypond.git diff --git a/lily/include/moment.hh b/lily/include/moment.hh index f0c6fbb21b..ed7c7b0741 100644 --- a/lily/include/moment.hh +++ b/lily/include/moment.hh @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2006 Han-Wen Nienhuys + (c) 1999--2008 Han-Wen Nienhuys */ #ifndef MOMENT_HH @@ -18,7 +18,7 @@ */ class Moment { - DECLARE_SIMPLE_SMOBS (Moment,); + DECLARE_SIMPLE_SMOBS (Moment); public: Moment (); Moment (int m); @@ -41,8 +41,8 @@ public: void set_infinite (int k); bool to_bool () const; - int den () const; - int num () const; + I64 den () const; + I64 num () const; /* Deliver a copy of THIS as a smobified SCM */ @@ -50,6 +50,7 @@ public: static int compare (Moment const &, Moment const &); SCM as_scheme () const; }; + IMPLEMENT_ARITHMETIC_OPERATOR (Moment, +); IMPLEMENT_ARITHMETIC_OPERATOR (Moment, -); IMPLEMENT_ARITHMETIC_OPERATOR (Moment, /);