]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/duration.cc
Admin: run yearly grand-replace.
[lilypond.git] / lily / duration.cc
index 814bf6e159db3ee1b8d37444dc69e3fdb5f31232..194ce3a89e2e3187b302e83ea615a399595e277c 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2010 Jan Nieuwenhuizen <janneke@gnu.org>
+  Copyright (C) 1997--2011 Jan Nieuwenhuizen <janneke@gnu.org>
   Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   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++;