]> git.donarmstrong.com Git - lilypond.git/commitdiff
lily/staff-symbol: cast to avoid unhelpful warnings
authorKeith OHara <k-ohara5a5a@oco.net>
Sun, 16 Oct 2011 06:07:55 +0000 (23:07 -0700)
committerKeith OHara <k-ohara5a5a@oco.net>
Sun, 16 Oct 2011 06:07:55 +0000 (23:07 -0700)
lily/staff-symbol.cc

index abfbe0ef0dc25848c265af1ce4f0c350f4b7098f..80be13b993a42d9dccdbb71debc81e3e0708b9d0 100644 (file)
@@ -181,7 +181,7 @@ Staff_symbol::ledger_positions (Grob *me, int pos)
       ledger_fill.add_point (pos + 0.5 * dir + ledger_extra * dir);
 
       // fill the Interval ledger_fill with ledger lines
-      int n = floor ((ledger_fill[DOWN] - min_pos) / cycle);
+      int n = (int) floor ((ledger_fill[DOWN] - min_pos) / cycle);
       Real current;
       SCM s = scm_cdr (ledger_positions);
       do
@@ -226,7 +226,7 @@ Staff_symbol::ledger_positions (Grob *me, int pos)
     }
   else
     {
-      int ledger_count = floor ((abs (nearest_line - pos) + ledger_extra) / 2);
+      int ledger_count = (int) floor ((abs (nearest_line - pos) + ledger_extra) / 2);
       values.resize (ledger_count);
       for (int i = 0; i < ledger_count; i++)
         {