X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Frational.cc;h=724f0d99ca5b526dfc5f067decfbaf2066f7796c;hb=a3765e1d290e5e49093e7ca7791bf3fe20be1726;hp=6822703256a410433e3235c4fa263b389357a08a;hpb=c2ccda3e91d408453744bd03882c6b0584a9561a;p=lilypond.git diff --git a/flower/rational.cc b/flower/rational.cc index 6822703256..724f0d99ca 100644 --- a/flower/rational.cc +++ b/flower/rational.cc @@ -3,7 +3,7 @@ source file of the Flower Library - (c) 1997--2006 Han-Wen Nienhuys + (c) 1997--2007 Han-Wen Nienhuys */ #include "rational.hh" @@ -16,7 +16,8 @@ using namespace std; #include "string-convert.hh" #include "libc-extension.hh" -Rational::operator double () const +double +Rational::to_double () const { if (sign_ == -1 || sign_ == 1 || sign_ == 0) return ((double)sign_) * num_ / den_;