X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fduration.cc;h=194ce3a89e2e3187b302e83ea615a399595e277c;hb=cf3642858a2340bb39ee56739f34c799946d4454;hp=814bf6e159db3ee1b8d37444dc69e3fdb5f31232;hpb=bc95f4434f760d41191341ab4508b2064eb19025;p=lilypond.git diff --git a/lily/duration.cc b/lily/duration.cc index 814bf6e159..194ce3a89e 100644 --- a/lily/duration.cc +++ b/lily/duration.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2010 Jan Nieuwenhuizen + Copyright (C) 1997--2011 Jan Nieuwenhuizen Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify @@ -61,8 +61,8 @@ Duration::Duration (Rational r, bool scale) satisfies the left inequality and is within a factor of 2 of satistying the right one. Therefore either k = k' or k = k'+1 */ - int p = r.num (); - int q = r.den (); + int p = (int) r.num (); + int q = (int) r.den (); int k = intlog2 (q) - intlog2 (p); if (shift_left(p, k) < q) k++;