]> git.donarmstrong.com Git - lilypond.git/commitdiff
Give a double to the pow function instead of an integer.
authorMike Solomon <mike@apollinemike.com>
Thu, 16 Jun 2011 08:33:43 +0000 (10:33 +0200)
committerMike Solomon <mike@apollinemike.com>
Thu, 16 Jun 2011 08:33:43 +0000 (10:33 +0200)
This allows lilypond master to compile correctly on all systems.

lily/multi-measure-rest.cc

index 812fd100e41621f0eaa78964fcfc21517684da30..69b71c9a3115f1a0a2d3c9aed395ad4ef746d8f1 100644 (file)
@@ -243,7 +243,7 @@ Multi_measure_rest::church_rest (Grob *me, Font_metric *musfont, int measures,
     do
     {
       i++;
-      length = int (pow (2, -i));
+      length = int (pow (2.0, -i));
     }
     while (i <= 0 &&
            !(l >= length && mdl >= longest_church_rest - i));