]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/duration.cc
Fix compiler warnings.
[lilypond.git] / lily / duration.cc
index 814bf6e159db3ee1b8d37444dc69e3fdb5f31232..627ede23da764e43d1f507531ab31f07d4d4dd0b 100644 (file)
@@ -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++;