X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=flower%2Frational.cc;h=f1d661a736fc8aac67e07c367e7442698e20c63e;hb=8c8d80c09f0acdb886ff7eefc22b3be428bdc5b7;hp=6046374630bf7e964de4a1c0070e6a44e49c54af;hpb=9e338fb9a890089a44a3c36ae3c95653027718d5;p=lilypond.git diff --git a/flower/rational.cc b/flower/rational.cc index 6046374630..f1d661a736 100644 --- a/flower/rational.cc +++ b/flower/rational.cc @@ -3,7 +3,7 @@ source file of the Flower Library - (c) 1997--2007 Han-Wen Nienhuys + (c) 1997--2009 Han-Wen Nienhuys */ #include "rational.hh" @@ -76,6 +76,13 @@ Rational::Rational (I64 n) den_ = 1; } +Rational::Rational (U64 n) +{ + sign_ = 1; + num_ = n; + den_ = 1; +} + Rational::Rational (int n) { sign_ = ::sign (n);